我需要你的帮助我想改变我的URL格式,但我不能这样做,我不断收到Object Not Found
错误。如何更改使用htaccess url格式
真实网址为:http://localhost/website/page.php?pid=about
我使用htaccess的希望类似这样的URL http://localhost/website/about.php
我的代码是:
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(([a-zA-z0-9\_\-\+]+))\.html|([a-zA-z0-9\_\-]+)\.php$ page.php?pptype=$2&pppage=$3&id=$4 [QSA,NC,L]
</IfModule>
的可能的复制[?htaccess的干净的URL什么是做到这一点的最好办法(http://stackoverflow.com/questions/12661287/ htaccess-clean-urls-what-the-best-way-do-it) – Dez