Forum Moderators: phranque
this is how it didn't work...
my .htaccess file
================================
redirectPermanent /old [mydomain.com...]
================================
[1]
[mydomain.com...] ==> [mydomain.com...] [OK]
[2]
[mydomain.com...] ==> [mydomain.com...] [OK]
but what i want is for any page under /old
eg
[mydomain.com...]
[mydomain.com...]
[mydomain.com...]
[mydomain.com...]
to be redirected to a particular HTML page
eg [mydomain.com...]
thanks
The Redirect directive maps an old URL into a new one. [snip] ...any requests for documents beginning with this path will be returned a redirect error to a new (%-encoded) URL beginning with URL.Example:
Redirect /service [foo2.bar.com...]
If the client requests [myserver...] it will be told to access [foo2.bar.com...] instead.
Sounds like what you need is RedirectMatch [httpd.apache.org]