hmm i was looking for a way of hiding the php extension in a url.. already read this
but is it possible to do something like index?id=1 instead of index.php?id=1 .. hiding the extension altogether?
you could set your server up so that any extension get's run through the php interpreter before being sent to the client. So if every page on the server is php you could have the .htm extension interpreted as php or any other extension if that's not viable. How about asp so you can look like you're running asp when in reality you're running php.
For Apache, put this in your .htaccess file:
<FilesMatch "your_file_name$"> ForceType application/x-httpd-php </FilesMatch>
in your .htaccess file add this
AddType application/x-httpd-php BOB
so you would now be able to have index.BOB
<Files index.html> ForceType application/x-httpd-php </Files>
😃
I just read about ForceType. =)
please ignore my earlier post.
This article does a good job of explaining ForceType.