Connecting Tech Pros Worldwide Forums | Help | Site Map

Redirect Help Please

mtek@mtekusa.com
Guest
 
Posts: n/a
#1: Nov 12 '07
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!


Jerry Stuckle
Guest
 
Posts: n/a
#2: Nov 12 '07

re: Redirect Help Please


mtek@mtekusa.com wrote:
Quote:
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!
>
>
This isn't a PHP question - it's an apache configuration one. Try
alt.apache.configuration. They'll be able to help you there.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Closed Thread