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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hiding filename in address box 1

Status
Not open for further replies.

kazilian

Programmer
Nov 14, 2003
30
US
i know i've seen how to do this on a thread before, somewhere. i looked again, but couldn't find it. i would like to "NOT" display the file name in the browser's address box (i think this is possible). instead of it would be this may be a question for the apache forum (since i'm running apache on linux with php), i'll ask there if no answer here. thx in advance.

kazilian
Protector of Wazil
 
Yup its apache, but you should have already done this when installing apche and php.

Edit apache's httpd.conf
----------
AddType application/x-httpd-php .php

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
----------

This also means that you can serve any extension as a php page

ie .xxx
AddType application/x-httpd-php .xxx (process as a php page)

<IfModule mod_dir.c>
DirectoryIndex zzz.xxx index.html index.php
</IfModule>
(server zzz.xxx before any other page)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top