Forum Moderators: coopster

Message Too Old, No Replies

Hide php file extention

how and why?

         

nfs2

9:45 am on Feb 23, 2006 (gmt 0)

10+ Year Member



I noticed on most sites, there are no file extentions. Just urls like mydomain.com/action?something&result=this and there is no file extention

An example of this is digg.com. I know its a php site but theres no file extention to be found. At first i was thinking they used mod_rewrite to get rid of the file extention, but i dont think that anymore.

Does anyone know how?

omoutop

10:58 am on Feb 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi nfs2

I think that this can be done using Apache's mod rewrite module along with .htaccess, you can try searching on the web for .htaccess abilities and documentation or better yet ask in the Apache forum right here in webmasterworld/forum92

coopster

4:58 pm on Feb 23, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It is likely Content Negotiation. The W3 released a new article this week on Content Negotiation -- a good read:

Content Negotiation: why it is useful, and how to make it work [w3.org]