Re: .htaccess - change index.php to index.abc
| From: | Joe Wollard | Date: | Sun, 04 Jun 2006 02:17:51 +0000 |
| Subject: | Re: .htaccess - change index.php to index.abc | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237332@lists.php.net to get a copy of this message | ||
If you don't want to change the names of the files themselve from .php to
.abc then you'd need to use something like mod_rewrite for apache's HTTPD.
I'm not entirely certain as to how you'd do this, but I've included what I
normally use to hide index.php in the url. If possible I'd put this in
httpd.conf instead of .htaccess - there are performance concerns that may be
involved there. Anyway, I hope this gets you started or sparks an idea from
another list member.
<Directory /var/www/html/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</Directory>
On 6/3/06, Labunski <romans@skulme.lv> wrote:
Hello, What should I change in .htaccess, so that visitors will see index.abc instead of index.php. I just wanna hide file's extension. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php