Forum Moderators: coopster
From what I understand I need to create a .htaccess file and put some text in it. I've looked around and can't seem to find anything that works. My server is netfirms and in my settings I have "htaccess: enabled" and "PHP version PHP 4".
When I go in the netfirms help all I see is this:
"Example #14:
The following example allows visitors to browse to .html pages and parse them as PHP pages (.html will be retained in the URL):
RewriteEngine On
Rewritebase /
RewriteRule ^index.htm$ index.php [L,NE]
RewriteRule ^(.*).htm $1.php [QSA,L]"
I receive the following message:
"Not Found
The requested URL /links.php was not found on this server."
so I don't think that's the right code and I didn't see that code anywhere else. At least this tells me my .htaccess file works, I just need to find the right code.
Can anyone help?
Thanks
Phil
There are a number of ways to parse files with PHP and Apache mod_rewrite is but one. If you are able to add a handler [php.net] it would be much easier. The question has been asked and answered many times here at WebmasterWorld so please take a moment to read through and try some of the answers [google.com] first.
AddType caused problems when trying to open the page with firefox. Addhandler doesn't cause any problems but my menu doesn't show up.
With addhandler also, even if I rename my page to test.php the menu doesn't show up but if I delete the .htaccess file it'll work.
I spent hours looking for a solution and can't find anything that works. :(
I also have a page which doesn't work now but will work if I delete the .htaccess file.
My .htaccess file is this right now:
AddHandler application/x-httpd-php .htm .php
I looked around on the forums and I seem to be having the same problem as here: [webmasterworld.com...] but it doesn't seem like anyone found a solution.
[edited by: coopster at 7:12 pm (utc) on May 9, 2009]
[edit reason] no personal urls please TOS [webmasterworld.com] [/edit]