|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Thank you Rik! Have a great day! :-)
|
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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? |
|
![]() |
| Outils de la discussion | |
|
|