You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sean Brown <se...@gmail.com> on 2006/01/19 17:35:46 UTC
[users@httpd] RedirectPermanent question
I used to host a site on my box, but the user has decided to use Apple
new iWeb and .mac hosting service. In this service, she has to use
their domain, so their is no DNS switch. The URL for her new site is
like this:
http://web.mac.com/username/iWeb/Sitename/welcome.html
So, I my box, I set up the redirect like so:
<VirtualHost 64.246.48.96:80>
ServerName herdomain.com
ServerAlias www.herdomain.com
RedirectPermanent /
"http://web.mac.com/username/iWeb/Sitename/welcome.html"
</VirtualHost>
This works fine when people type in http://herdomain.com or
http://www.herdomain.com into their browsers, but if they do
http://herdomain.com/blah.html, it tries to redirect to to a
nonexistent page on the new host and therefore a 404 error.
So my question is, how can I redirect ANY request to ANY page (or
other resource) on her domain to the same home page at the new host
(http://web.mac.com/username/iWeb/Sitename/welcome.html)?
Thanks in advance,
Sean
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] RedirectPermanent question
Posted by Joshua Slive <jo...@slive.ca>.
On 1/19/06, Sean Brown <se...@gmail.com> wrote:
> RedirectPermanent /
> "http://web.mac.com/username/iWeb/Sitename/welcome.html"
> So my question is, how can I redirect ANY request to ANY page (or
> other resource) on her domain to the same home page at the new host
> (http://web.mac.com/username/iWeb/Sitename/welcome.html)?
This exact question is answered here:
http://httpd.apache.org/docs/2.2/urlmapping.html#redirect
RedirectMatch permanent .*
http://web.mac.com/username/iWeb/Sitename/welcome.html
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org