终于在一段时间后触底了。基本上 Magento 干扰了 htaccess 文件,所以我在另一个网站上进行了测试;
http://www.office-desks.co.uk/solar-cantilever-combi-desks.html
实际上是从
http://www.office-desks.co.uk/cat/product.php?prod加载结果=太阳能悬臂组合desks.html
现在我有漂亮干净的 URL 哇 :)
这是我的 htaccess 代码,可以帮助某人;
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ cat/product.php?prod=$1
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)\.php$ cat/cat.php?cat=$1
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([^\.]+)$ cat/cat.php?cat=$1
导致问题的magento中的行是这些(直到通配符);
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule (.*) m1_seourls.router.php
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule (.*) m1_seourls.router.php