httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Rossignoli" <softw...@polin.it>
Subject Re: [users@httpd] some mod_rewrite help needed....
Date Thu, 13 Mar 2003 14:31:43 GMT
Ah,
okay...

RedirectMatch ^.*$ http://some-other-domain.com/some-aspfile.asp?something

~Andrea

----- Original Message -----
From: "Jasper Metselaar" <jasper@formmailer.nl>
To: <users@httpd.apache.org>
Cc: <software@polin.it>
Sent: Thursday, March 13, 2003 15:21
Subject: Re: [users@httpd] some mod_rewrite help needed....


> Well, this is not exactly what I need, since this will try to redirect:
>
> http://www.mydomain.com/somepage.html to
> http://some-other-domain.com/somepage.html
> and not to http://www.some-other-domain.com/some-aspfile.asp?something
>
> So I don't only need a redirect to a different server (or domain) but also
> a redirect to a specific URL, regardless of the requested URL.
> If this wasn't the case I would have used a cname in my DNS... ;-)
>
> -- Jasper
>
>
> > Hi,
> >
> > instead of using rewrite rules you could use the redirectmatch
> > directive.
> >
> > So basically you need:
> >
> > RedirectMatch ^(.*)$ http://some-other-domain.com$1
> >
> >
> > ~Andrea
> >
> >
> > ----- Original Message -----
> > From: "Jasper Metselaar" <jasper@formmailer.nl>
> > To: <users@httpd.apache.org>
> > Sent: Thursday, March 13, 2003 15:03
> > Subject: [users@httpd] some mod_rewrite help needed....
> >
> >
> >> Hi,
> >>
> >> I am currently struggling with mod_rewrite.
> >> What I need to do is the following:
> >>
> >> Every URL on the domain mydomain.com should be redirected to:
> >> http://www.some-other-domain.com/some-aspfile.asp?something
> >>
> >>
> >> So basically the whole domain should be redirected to a specific page
> >> on a different server with a different domain name.
> >>
> >> Can someone point me in the right direction?
> >>
> >> Thanks in advance!
> >>
> >> Kind regards,
> >> Jasper
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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


Mime
View raw message