Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help help

Status
Not open for further replies.

cs7536

Programmer
Apr 20, 2003
130
US
I have installed php on my apache server, I wanted to access my php files without having to type in the .php exstention on the files that I want to access. I now that it is an apache question and setting and not a php but dont know where to go. Can someone please help.

Thanks in advance.
Max

Nothing is hard when you realy want to learn it.

Max
 
You can use the ForceType directive to accomplish this. Example:
Code:
<Location /php>
    ForceType application/x-httpd-php
    Allow from all
</Location>
Everything in the location /php will be ran though mod_php. This won't save you typing though because now everything is prepended with /php/ instead of appended with .php . If you just have php and html files you could get away with this on the top level, but that means EVERYTHING gets passed through php.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top