htaccess的:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^dev/(.*)/$ /out.php?q=$1 [L]
RewriteRule ^dev/(.*)/([a-z]+)$ /out.php?q=$1&s=$2 [B,L]
网址请求:
http://example.com/dev/100%25%20Booster%20Juice%20(6%20Hours)/supply
出于某种原因,上述请求会导致服务器错误:
http://example.com/dev/100%25%20Booster%20Juice%20(6%20Hours)/
http://example.com/dev/Energy%20Juice%20(6%20Hours)/supply
http://example.com/dev/Energy%20Juice%20(6%20Hours)/
完美地工作,不会产生错误。我不知道为什么只有一个特定的URL不起作用。