Link to home
Create AccountLog in
Avatar of Gary
GaryFlag for Ireland

asked on

.htaccess Rewrite rule

I'm trying to redirect /hotels/ to a sub directory (which is a cname)
Rule is
RedirectMatch 301 /hotels/(.*) http://images.mysite.com/hotels/$1
It seems to beredirecting to
http://images.mysite.com/hotels/

What am I missing, why is it not appending the rest of the url
ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Gary

ASKER

I actually changed my methodology but I'm sure you're right