You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Smith <jo...@yahoo.com> on 2003/10/31 21:35:30 UTC

[users@httpd] redirecting to another url

What's the best way to redirect requests for an old
domain to a new domain?

RedirectMatch permanent * http://newdomain.com

?

John

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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


[users@httpd] apache2.0.47 and php-4.3.4 and solaris

Posted by Huseyin OZYURT <ho...@hacettepe.edu.tr>.
Hi;
I have a problem at apache-2.0.47.I have web page more than 3500 on
solaris 9 sparc machine.My web page is less than 1024 ; my server and php
is working fine;but my web paage is more than 1024,web server is not
reading php.ini file.How could i solve this problem? my server is not take
any problem in error file.

Thanks....
Regards...




---------------------------------------------------------------------
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] redirecting to another url

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 31 Oct 2003, John Smith wrote:

> What's the best way to redirect requests for an old
> domain to a new domain?
>
> RedirectMatch permanent * http://newdomain.com
>
> ?

See:
http://httpd.apache.org/docs-2.0/urlmapping.html#redirect

The answer depends on whether you want the user redirected to the same
path at the new domain.  If so:
Redirect permanent / http://newdomain.com/
If not:
RedirectMatch permanent .* http://newdomain.com/

(Redirect implicitly tags the rest of the URL onto the redirect, while
RedirectMatch does not.)

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