![]() |
htaccess rewrite question..
i have a site with a bunch of php files like this:
http://www.site.com/cookies.php http://www.site.com/milk.php is it possible to make a rewrite so the links would look like this? http://www.site.com/cookies http://www.site.com/milk thanks a bunch :) |
|
RewriteRule ^/([^/]+)*$ $1.php
that should work, but don't make any .php files that have folders with the same name or it will fuck with it |
hmm, thanks for the help guys.
somehow i can't get it to work. should my htaccess file have more than this: RewriteEngine on RewriteRule ^/([^/]+)*$ $1.php ? |
Quote:
8chars.... |
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] that worked. thanks! |
All times are GMT -7. The time now is 05:34 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123