How to Redirect
am 13.11.2007 15:27:23 von mtek
Hi Everyone,
I have a .html file on my server. It is not index.html. I want to
redirect that request to .php. A few tings though:
I do not have to change the address bar, I do not want them to see
the .php address.
I tried the .htaccess approach, but it is not working. Here is my
entry:
RewriteEngine on
RewriteRule page1\.html page1.php [NC,R]
I'm running CentOS.
Thank you!
Re: How to Redirect
am 13.11.2007 16:07:36 von mtek
On Nov 13, 8:31 am, Davide Bianchi
wrote:
> On 2007-11-13, m...@mtekusa.com wrote:
>
> > I have a .html file on my server. It is not index.html. I want to
> > redirect that request to .php. A few tings though:
>
> > I do not have to change the address bar, I do not want them to see
> > the .php address.
>
> Then is not a redirect but more of a proxy, use the 'P' option of
> Rewrite ([P]).
>
> Davide
>
> --
> In a world without fences who needs Gates?
Does that mean I should remove the NC & R options?