Hiding the file PHP file extension
Author |
Message |
HaVoC
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
octopi
![](http://compsci.ca/v3/uploads/user_avatars/1246682444a1aa25749124.gif)
|
Posted: 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.
- |
|
|
|
|
![](images/spacer.gif) |
|
|