View Full Version : Redirecting *.html files to *.asp files without using meta refresh
lakruwan
05-29-2007, 03:05 AM
I need to re-direct the SE indexed pages of an old html site to the new asp pages. I don't want to use meta refresh.
I.e. www.*****.com.au/contact.html ---> www.*****.com.au/content/contact.asp
i keep coming up against using the .htaccess file but i don't think thats what i need. Thanks in advance.
evilgreenmonkey
05-29-2007, 04:11 AM
A mod_rewrite is your best bet. You can either have a 301 redirect for each moved file or a pattern matching redirect if the filename always stays the same and only the extension changes. Which one is best for you?
lakruwan
05-29-2007, 05:25 AM
i think a 301 redirect for each page. I only have a few pages but i need to get them redirected. I don't' know if you can have multiple redirects in the .htaccess. plus i'm having trouble with the code. If you could post the code for redirecting multiple files that'd be great.
Chris_D
05-29-2007, 05:28 AM
It sounds like an MS IIS server, so 301 redirect - try using isapi rewrite
evilgreenmonkey
05-29-2007, 06:40 AM
It sounds like an MS IIS server, so 301 redirect - try using isapi rewriteGood point, I always think of WAMP and forget that Windows have their own web server. The sooner they get rid of IIS, the better, in my opinion :)
Here's what you'll need (unless using ASP on Linux):
http://www.isapirewrite.com/
lakruwan
05-29-2007, 09:21 AM
thanks guys. i'll give it a go.