Forum Moderators: phranque

Message Too Old, No Replies

301 Redirect

www.mydomain.com/directory/ to www.mydomain.com/

         

web_young

6:43 pm on May 6, 2004 (gmt 0)

10+ Year Member



Is it possible for me to redirect the pages I have in www.mydomain.com/directory/ to www.mydomain.com/. I don't want to have to redirect every page individually instead I want to know if it can be done for all of the pages automatically. Am I making any sense? Thanks in advance for your help.

jdMorgan

6:50 pm on May 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you can do this with a single directive in your .htaccess file, using mod_alias [httpd.apache.org] or mod_rewrite [httpd.apache.org].

Jim

web_young

7:04 pm on May 6, 2004 (gmt 0)

10+ Year Member



Thanks.