PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Redirect not working
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Redirect not working

Réponse
 
LinkBack Outils de la discussion
Vieux 06/10/2006, 14h43   #1
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect not working

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
  Réponse avec citation
Vieux 06/10/2006, 15h16   #2
Aaron Gray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Redirect not working

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


  Réponse avec citation
Vieux 06/10/2006, 16h21   #3
Aaron Gray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redirect not working

"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


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h25.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08529 seconds with 11 queries