0
我改变了我的.htaccess来制作漂亮的网址。 这是怎么回事?RewriteRule .htaccess不能正常工作
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9-/]+).html$ article.php?url=$1 [NC,L]
RewriteRule ^([a-zA-Z0-9-/]+).html/$ article.php?url=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^category/([a-zA-Z0-9-/]+).html$ category.php?cat=$1 [NC,L]
RewriteRule ^category/([a-zA-Z0-9-/]+).html/$ category.php?cat=$1 [NC,L]
,我从这个 .htaccess rewriteRule conflict
了我会做出这样的
localhost/category/bla.html
localhost/seo/bla.html
,这是数据库的URL
bla.html
seo/bla-bla.html
什么网址你试图实现什么是原始网址请提及seperatly。 –
谢谢,我已经完成了。 –