|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On 2006-10-06, Aaron Gray <ang.usenet@gmail.com> wrote:
> I cannot get redirect to work on Apache 2.0.54-10.4 From the docs: The old URL-path is a case-sensitive (%-decoded) path beginning with a slash. A relative path is not allowed. The new URL should be an absolute URL beginning with a scheme and hostname, but a URL-path beginning with a slash may also be used, in which case the scheme and hostname of the current server will be added. Example: Redirect /service http://foo2.bar.com/servic 5 minutes spent reading the documentation sometimes save hours. Davide -- For their next act, they'll no doubt be buying a firewall running under NT, which makes about as much sense as building a prison out of meringue. -- from alt.sysadmin.recovery |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
I cannot get redirect to work on Apache 2.0.54-10.4
For example:- Redirect http://example.com http://www.example.com and RedirectPermanent http://example.com http://www.example.com Many thanks in advance, Aaron |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrneicpkf.4ol.davideyeahsure@fogg.onlyforfun .net... > On 2006-10-06, Aaron Gray <ang.usenet@gmail.com> wrote: >> I cannot get redirect to work on Apache 2.0.54-10.4 > > From the docs: > The old URL-path is a case-sensitive (%-decoded) path beginning with a > slash. > A relative path is not allowed. The new URL should be an absolute URL > beginning with a scheme and hostname, but a URL-path beginning with a > slash may also be used, in which case the scheme and hostname of the > current server will be added. > > Example: > Redirect /service http://foo2.bar.com/servic > > 5 minutes spent reading the documentation sometimes save hours. Must be in a <VirtualServer> block So you cannot rediect a site to another site, ie :- Redirect example.com www.another.com Aaron |
|
![]() |
| Outils de la discussion | |
|
|