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 > Newbie Request re-routing URLS needed
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Newbie Request re-routing URLS needed

Réponse
 
LinkBack Outils de la discussion
Vieux 14/02/2007, 22h51   #1
iowa@rock.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Newbie Request re-routing URLS needed

Could someone please show me the complete code needed to include
in .htaccess to rewrite all URLS ending in extension ".tes", to route
to a fixed page:

Like,

http://servername.com/anythingatall.tes

http://servername.com/deeper/anythingatall.tes

http://servername.com/deeper/doesntm...thingatall.tes



Anything at all, will fly to http://servername.com/goeshere.com

How would this be done? :-)

Sincerely, Steve-O

  Réponse avec citation
Vieux 15/02/2007, 01h25   #2
Rik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Newbie Request re-routing URLS needed

On Wed, 14 Feb 2007 23:51:56 +0100, <iowa@rock.com> wrote:

> Could someone please show me the complete code needed to include
> in .htaccess to rewrite all URLS ending in extension ".tes", to route
> to a fixed page:
>
> Like,
>
> http://servername.com/anythingatall.tes
>
> http://servername.com/deeper/anythingatall.tes
>
> http://servername.com/deeper/doesntm...thingatall.tes
>
>
>
> Anything at all, will fly to http://servername.com/goeshere.com
>
> How would this be done? :-)


..htaccess in the root:

RewriteEngine On
RewriteRule \.tes$ goeshere.com [L]

--
Rik Wasmus
  Réponse avec citation
Vieux 15/02/2007, 01h43   #3
iowa@rock.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Newbie Request re-routing URLS needed

Thank you Rik! Have a great day! :-)


  Réponse avec citation
Vieux 15/02/2007, 03h59   #4
iowa@rock.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Newbie Request re-routing URLS needed

On Feb 14, 7:43 pm, i...@rock.com wrote:
> Thank you Rik! Have a great day! :-)


QUICK follow-up question:

I have a minor problem. When RewriteEngine is turned on in
my .htaccess file and when I request the URL http://servername.com/anythingatall.tes
, everything is fine and the non-existant .tes file is re-pathed to
'goeshere.htm (didn't mean to use .com in my earlier example)....
however, when the RewriteEngine is turned on, when I go to
servername.com it just loads a non-existant page and I cannot get into
the site. When I take the two lines out it works. What could it be?

  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 18h48.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10763 seconds with 12 queries