Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-20-2008, 03:45 PM   PM User | #1
ungovernable
New Coder

 
Join Date: Jan 2008
Posts: 77
Thanks: 2
Thanked 0 Times in 0 Posts
ungovernable is an unknown quantity at this point
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?
ungovernable is offline   Reply With Quote
Old 11-20-2008, 04:46 PM   PM User | #2
tomws
Senior Coder

 
tomws's Avatar
 
Join Date: Nov 2007
Location: Arkansas
Posts: 2,644
Thanks: 29
Thanked 330 Times in 326 Posts
tomws will become famous soon enoughtomws will become famous soon enough
You might try using a RedirectMatch.
tomws is offline   Reply With Quote
Reply

Bookmarks

Tags
exception, htaccess, redirection

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:14 PM.


Advertisement
Log in to turn off these ads.