Apache Server configuration support - Mass Virtual Hosting Rediect giving 301 based on URL

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > Mass Virtual Hosting Rediect giving 301 based on URL





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mass Virtual Hosting Rediect giving 301 based on URL
blaine@worldweb.com

2006-02-26, 11:24 am

Hello,

I have a url <test.html> that needs to be redirected for all enteries
within our mass virtual host. This redirect also needs to keep the
variables tacked on to the end of the url.I have to use RedirectMatch
to do this as there is no ReWrite compiled into the server.

Below is the current entry:

RedirectMatch permanent test.html(.*)
http://www.junk.com/testRedirect.html$1

This entery works perfect when coming from the same domain
<www.junk.com>as the redirection file. However, when come from another
domain or subdomain <www.nothing.junk.com/test.html> it spews back a
301 page.

Any ideas?

Examples of working
www.junk.com/test.html?id=1

Examples of not working
www.test.junk.com/test.html?id=1
www.OtherMassVirtual.com/test.html?id=1

blaine@worldweb.com

2006-02-26, 11:24 am

I found a solution. I can just use a global AliasMatch.

Thanks,
Blaine

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com