A Universal .htaccess script

This is a universal htaccess script, that can rewrite your non www to www and not https to http. This script supports all type of domain. Also this script has caching enable for the clients side. I used this script for every domain in which I have to rewrite domain.   Options All -Indexes RewriteEngine […]

Read More

URL redirect through .htaccess file

URL rewrite helps you to hide your extension name or show different extension name like index.php can be displayed as index.html or only index or home etc.The following code will rewrite anyfile.php to anyfile.html RewriteEngine on RewriteRule ^(.*).html$ $1.php The following code will rewrite index.php to index RewriteEngine on RewriteRule ^index index.php   Few Example […]

Read More

Redirecting Sub directory to Sub-Domain

Redirect www.example.com/blog to blog.example.com A lot of web hosts today provide an easy implemention for subdomain creation in their administration panels. You just need to to go there, choose you subdomain name, and then point it to a directory in your tree. If you can’t, then it will be a little more complicated (You will […]

Read More