NameSilo

Weird .htaccess problem

Spacemail by SpaceshipSpacemail by Spaceship
Watch

ncwdavid

Established Member
Impact
3
Hey, I was following this little tutorial about how to make search engine friendly urls without using mod_rewrite:

http://www.tutorio.com/tutorial/php-alternative-to-mod-rewrite-for-se-friendly-urls

Everything is fine except for the .htaccess file. I copied it and pasted it and changed the "something" to my PHP page which is "tricks.php" and now when I go to my site I get this 500 Internal Server Error.

When I remove the .htaccess file from the directory my site loads as normal. All that is in my .htaccess file is:

PHP:
<FilesMatch "^tricks$">
<ForceType application/x-httpd-php >
</FilesMatch>

I have also tested this on my local server "WAMP 2" and I get the exact same problem. Any ideas? Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
It should be:

Code:
ForceType application/x-httpd-php

(without "<" and ">")
 
0
•••
I knew it would be something simple as always. Thanks for the help.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back