Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Weird .htaccess problem

Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
SpaceshipSpaceship
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
Close
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
Close
I knew it would be something simple as always. Thanks for the help.
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back