[EMAIL PROTECTED] RedirectPermanent question

2006-01-19 Thread Sean Brown
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:


ServerName   herdomain.com
ServerAlias  www.herdomain.com
RedirectPermanent /
"http://web.mac.com/username/iWeb/Sitename/welcome.html";


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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RedirectPermanent question

2006-01-19 Thread Joshua Slive
On 1/19/06, Sean Brown <[EMAIL PROTECTED]> 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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]