PDA

View Full Version : search results page


lukemack
11-09-2005, 08:16 AM
hi,

i am evaluating phpdig for use at a client's site but have yet to install it. Can somebody confirm whether it is possible to completely hide the fact that php is being used? i.e. do the results come back in a results.php page or similar?

i realise that the form submission can just do a post action to search.php

thanks,

lukemack.

Charter
11-10-2005, 09:48 PM
If you want to change the .php file extensions to say .foo then you could try the following in an htaccess file to get the .foo files to evaluate as .php files:

<Files *.foo>
ForceType application/x-httpd-php
</Files>

Of course you'd need to check the code too for any use of .php in paths and links and change those to .foo also.

If you want to change the search.php filename to search with no extension then you could instead try the following to get search to evaluate as the search.php file:

<Files search>
ForceType application/x-httpd-php
AcceptPathInfo On
</Files>

Where SEARCH_PAGE is set to search in the PhpDig config file.