...

View Full Version : Need some quick help: redirect sub dir to root dir



Sim
03-06-2011, 02:51 PM
I just moved my forum from a sub directory to my root directory. I want to redirect all my old links from sub directory to the new links in root directory. How can I do this? ;]


Path was "mydomain.com/forums"
New Path is just "mydomain.com"

ex: "mydomain.com/forums/general-discussion/sim-intro"
I want to redirect to "mydomain.com/general-discussion/sim-intro"

oesxyl
03-06-2011, 02:59 PM
I just moved my forum from a sub directory to my root directory. I want to redirect all my old links from sub directory to the new links in root directory. How can I do this? ;]


Path was "mydomain.com/forums"
New Path is just "mydomain.com"

ex: "mydomain.com/forums/general-discussion/sim-intro"
I want to redirect to "mydomain.com/general-discussion/sim-intro"
try this:

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectpermanent

in .htaccess:



RedirectPermanent http://mydomain.com/forums http://mydomain.com/


best regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum