Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Hiding the file PHP file extension
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
HaVoC




PostPosted: Wed Oct 06, 2004 7:43 am   Post subject: Hiding the file PHP file extension

How would I hide the file extension when people go to the page? OR how can I change the extension?

Thanks in advance
Sponsor
Sponsor
Sponsor
sponsor
octopi




PostPosted: Wed Oct 06, 2004 1:21 pm   Post subject: (No subject)

Edit your .htaccess file, you need it to say

AddType application/x-httpd-php .ext


there is a way to eliminate the extension, but that requires URL Rewriting (mod_rewrite) and I'm to lazy to explain it, cause google can.
-
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: