kenfused
07-28-2003, 07:58 PM
ello,
I'm trying to get some PHP files to be auto converted to HTML, [ REally, trying to get .html files when called to run a PHP script, and return the output as .html] using the method 1 on:
http://www.thesitewizard.com/archive/dynamicstatic.shtml
I made an httacess file as:
RewriteEngine on
RewriteBase /test/
RewriteRule ^pagename\.html$ index.php [T=application/x-httpd-php]
this file I put in www.myserver.com/test
Then I put in a generic index.php file and when I point my browser to:
http://www.myserver.com/test/index.php
I am expecting a page with "index.html"
However, I get:
"Forbidden
You don't have permission to access /test/index.php on this server.
Apache/1.3.27 Server at www.myserver.com Port 80"
When I try to access www.myserver.com/test/index.html (hoping to get it to really display "index.php" which I had uploaded, I get:
"Forbidden
You don't have permission to access /test/index.html on this server.
Apache/1.3.27 Server at www.myserver.com Port 80"
I guess the Rewrite is not occuring...
I have tried to CHMOD the .htacces file to 0777, but not luck..
Any ideas?
Thanks
I'm trying to get some PHP files to be auto converted to HTML, [ REally, trying to get .html files when called to run a PHP script, and return the output as .html] using the method 1 on:
http://www.thesitewizard.com/archive/dynamicstatic.shtml
I made an httacess file as:
RewriteEngine on
RewriteBase /test/
RewriteRule ^pagename\.html$ index.php [T=application/x-httpd-php]
this file I put in www.myserver.com/test
Then I put in a generic index.php file and when I point my browser to:
http://www.myserver.com/test/index.php
I am expecting a page with "index.html"
However, I get:
"Forbidden
You don't have permission to access /test/index.php on this server.
Apache/1.3.27 Server at www.myserver.com Port 80"
When I try to access www.myserver.com/test/index.html (hoping to get it to really display "index.php" which I had uploaded, I get:
"Forbidden
You don't have permission to access /test/index.html on this server.
Apache/1.3.27 Server at www.myserver.com Port 80"
I guess the Rewrite is not occuring...
I have tried to CHMOD the .htacces file to 0777, but not luck..
Any ideas?
Thanks
