You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Banning <da...@skytracker.ca> on 2005/01/30 10:41:25 UTC
[users@httpd] mod rewrite help
I would like to rewrite the address;
http://mysite.com
to http://mysite.com/index2.php
but actually -not- have the index2.php show.
so in the end it would still look like http://mysite.com but be reading
a different file than before the rewrite.
I want it to redirect -only- if the root domain is brought up in the
browser but -not- if, say http://mysite.com/other.php
is called
I have scanned the lists and experimented with this for sometime now.
Any help would be appreciated.
--
---------------------------------------------------------------------
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] mod rewrite help
Posted by Jean-Marc Lachaine <jm...@tbaytel.net>.
Inserting index2.php as your DirectoryIndex for mysite should achieve what
you are looking for.
JML
----- Original Message -----
From: "David Banning" <da...@skytracker.ca>
To: <us...@httpd.apache.org>
Sent: Sunday, January 30, 2005 4:41 AM
Subject: [users@httpd] mod rewrite help
> I would like to rewrite the address;
>
> http://mysite.com
>
> to http://mysite.com/index2.php
>
> but actually -not- have the index2.php show.
>
> so in the end it would still look like http://mysite.com but be reading
> a different file than before the rewrite.
>
> I want it to redirect -only- if the root domain is brought up in the
> browser but -not- if, say http://mysite.com/other.php
> is called
>
> I have scanned the lists and experimented with this for sometime now.
> Any help would be appreciated.
>
>
> --
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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