Archive for April 4th, 2006

URL redirect using .htaccess on Apache powered website

Tuesday, April 4th, 2006

If you want to redirect an URL to a new address, it can be easily done using Apache .htaccess file.

Simply add the following code into a file names “.htaccess” in your directory.

RewriteEngine on
RewriteRule ^$ NEW_URL

A good reference is here.