Forum Moderators: phranque

Message Too Old, No Replies

How to redirect a directory to homepage?

         

irock

9:20 am on Mar 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, I have a listing on DMOZ pointing to a page that is about to retire. I want to know if there's a way to redirect this page or directory to my homepage. I heard of so many ways, but I couldn't figure out the best solution. Could anyone help?

carfac

5:24 pm on Mar 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



irock:

I would recommend a simple rewriterule, if you have mod_rewrite. You can do it a number of ways... invisibly (so the user does not even know they were forwarded) or passing a code to the spiders so they know this is a redirect (301, 302, whatever code you want!)

The basic sytnatx is:

ReWriteEngine ON
rewriterule OLD_URI NEW_URI [option_codes]

Google mod_rewrite for all the particulars!

Good Luck

Dave