How to Redirect
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
Post removed (X-No-Archive: yes)
Re: How to Redirect
On Nov 13, 8:31 am, Davide Bianchi <davideyeahs... [at] onlyforfun.net>
wrote:
> On 2007-11-13, m... [at] mtekusa.com <m... [at] 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?