Forum Moderators: phranque

Message Too Old, No Replies

Multiple 301 Redirects

Checking directories

         

woldie

8:05 am on Aug 17, 2004 (gmt 0)

10+ Year Member



Hello,

I'm trying to achieve multiple redirects, and what I have done is had a look at this page to get some ideas, [httpd.apache.org...]

What I'm trying to do is that I have a list of ASP URL's and I need to redirect them as HTML.

Below is the code I've used, to achieve this,

RedirectMatch (.*)\.asp$ [mydomain.com$1.html...]

This does work, however how do I get it to work if the file resides in a directory. The above code works if the file is at root level.

This is the test

[mydomain.com...]

Should redirect to:

[mydomain.com...]

Many Thanks

W :o)

jdMorgan

12:21 pm on Aug 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> The above code works if the file is at root level.

It should also work for files at any subdirectory level, as long as the old and new subdirectory names are the same.

Are you saying that you tested it and that it did not work for your subdirectory test case?

Jim