Redirect issues on rackspace

Posted by galilee on Stack Overflow See other posts from Stack Overflow or by galilee
Published on 2010-04-13T23:23:52Z Indexed on 2010/04/13 23:33 UTC
Read the original article Hit count: 956

Hi, i'm trying to setup 301 redirects on a rackspace account- this is what I want to happen:

www.test1.com/sub/index.asp -> www.test2.com/index.asp

test1.com is a new PHP version of an old ASP site (a subsection of which is now at test2.com), so any previous asp page links to the test1.com/sub/ need to go to the same page name at test2.co.nz.

I've got folder redirects working fine using .htaccess, ie in test1.com/sub/

RewriteRule ^(.*)$ http://www.test2.com/$1 [R=301,L]

but anything with .asp doesn't redirect, but is trying to be handled by the server.

I've also tried a web.config in test1.com/sub/ ie:

<configuration><system.web> <urlMappings enabled="true"> <add url="index.asp" mappedUrl="http://test2.com.com/index.asp"/> <urlMappings> </system.web> </configuration>

this gives a 500 internal server error Any ideas?

© Stack Overflow or respective owner

Related posts about rackspace

Related posts about .htaccess