blckspder
27th June 2007, 04:51 PM
Hello,
I have a web server set up on my FC6 box with apache, MySQL, and PHP setup. Everything was working fine until I tried to do "cleaner" urls for search engines... I created a .htaccess file which looks like this:
<files electronics>
ForceType application/x-httpd-php
</files>
<files industrial>
ForceType application/x-httpd-php
</files>
<files medical>
ForceType application/x-httpd-php
</files>
<files nanotechnology>
ForceType application/x-httpd-php
</files>
I placed this .htaccess in the same folder as the pages themselves... but when I go to visit the pages now they output as text and not php....
I am pretty sure my php is not configured with cgi... I know I have verion 5.1 with apache 2.0.
I have a WAMP server on my windows computer I use to test before passing to my linux box and everything works fine on the windows machine and php outputs correctly and not as text... If anyone can help I would appreciate it. Thanks.
I have a web server set up on my FC6 box with apache, MySQL, and PHP setup. Everything was working fine until I tried to do "cleaner" urls for search engines... I created a .htaccess file which looks like this:
<files electronics>
ForceType application/x-httpd-php
</files>
<files industrial>
ForceType application/x-httpd-php
</files>
<files medical>
ForceType application/x-httpd-php
</files>
<files nanotechnology>
ForceType application/x-httpd-php
</files>
I placed this .htaccess in the same folder as the pages themselves... but when I go to visit the pages now they output as text and not php....
I am pretty sure my php is not configured with cgi... I know I have verion 5.1 with apache 2.0.
I have a WAMP server on my windows computer I use to test before passing to my linux box and everything works fine on the windows machine and php outputs correctly and not as text... If anyone can help I would appreciate it. Thanks.