Hi I want to redirect few pages from old URL to new URL, so I have created .htaccess file and put following code there :- RewriteEngine on RewriteBase / RewriteRule ^old_page_URL\.htm$ http://www.mydomain.com/index.html [R=301,L] Code (markup): Is the above mentioned code ok for 301 redirection? Or do I need to add any other code with above code. Please let me know.... Regards Waby
I think that is fine for what you want or you can use: RewriteEngine on RewriteBase / RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] Code (markup): To redirect everything.