PDA

View Full Version : PHP .htaccess file



thaneer
January 8th, 2010, 11:54 AM
Hi,

I want to know one clarification, that is there any possibilities to write the code in .htaccess file for redirecting the url's.

Thanks,

actionAction
January 8th, 2010, 12:04 PM
Yes, from the the first Google search result:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]