【发布时间】:2015-01-16 23:46:21
【问题描述】:
我有这个 .htaccess,它基本上应该把我的链接从
http://www.dsbigiena.ro/products.php?product-id=Colac-wc-cu-folie-de-plastic-cu-actionare-manuala-prin-buton
到
http://www.dsbigiena.ro/Colac-wc-cu-folie-de-plastic-cu-actionare-manuala-prin-buton/
不幸的是,它没有这样做。
我写错了吗?
RewriteEngine On
RewriteBase /
RewriteRule ^([^/]*)/$ /products.php?product-id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
编辑:我确实用“deny from all”测试了 .htaccess,它确实有效。
【问题讨论】: