Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    77
    Thanks
    2
    Thanked 0 Times in 0 Posts

    help with .htaccess: redirection with exceptions

    Hello,

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

    Code:
    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?

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    You might try using a RedirectMatch.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •