View Full Version : help with .htaccess: redirection with exceptions

11-20-2008, 03:45 PM

i have this very simple .htaccess file to redirect "www.mysite.com/forums" to "forums.mysite.com"

Redirect 301 /forums http://forums.mysite.com

i would like to add an exception, because i need to be able to access "www.mysite.com/forums/admincp" and "www.mysite.com/forums/modcp", but with this script it will redirect me to the new address

any help please?

11-20-2008, 04:46 PM
You might try using a RedirectMatch (http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectmatch).

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum