Re: Having problem hiding PHP scripts with Apache's mod_rewrite.
| From: | John R. Marshall | Date: | Mon, 10 Jul 2000 19:24:15 +0000 |
| Subject: | Re: Having problem hiding PHP scripts with Apache's mod_rewrite. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5792@lists.php.net to get a copy of this message | ||
Adam Prall wrote:
> I'm trying to hide a script name in a URL so that I can access
> information like this:
try this..
rename your index.php to index
In your .htaccess file put
<Location /index>
ForceType application/x-httpd-php
</Location>
or try
<Files /index>
ForceType application/x-httpd-php
</Files>
That should give you
http://www.myserver.com/folder_containing_php_script/index/category/subcategory/keyword
I'd rename the index file to something that looks more descriptive (links, articles, news
etc..)
--
John R. Marshall - Webdesigner
JRM Studios - http://www.jrmstudios.com
The Hotrodding Network - http://www.hotrodding.net