Forum Moderators: coopster
After reading several threads here and elsewhere about Mod_Rewrite it seemed like the answer to making the URLs search engine friendly.
Then articles using a '.htaccess' file with the ForceType command began to appear and quite frankly seems like a simpler and more secure way to go:
<Files FileName>
ForceType application/x-httpd-php
</Files>
After a Google search for "ForceType application/x-httpd-php" numerous articles on the subject make it appear to be the preferred method for rewriting search engine friendly URLs.
Now I'm bewildered and poised on the edge of paralysis by analyses.
Can someone provide the pros and cons of the two alternatives?
i think you got your wires crossed a bit ;-)
* you could use mod_rewrite for instance to make long query strings look like a standard directory structure. this makes it easier for search engines and people alike to make sense of your URLs
* forcetype on the other hand instructs your webserver to treat a certain file as a php file.
e.g.
<Files news.html>
ForceType application/x-httpd-php
</Files>
this means the file news.html would be be parsed as a php file and could contain php code.
this sitepoint article [sitepoint.com] explains it very well
good luck
<added>Welcome to Webmasterworld! ;-)