2017-07-19 66 views

回答

0

要使用.htaccess您可以使用刪除結尾的斜線:

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_URI} (.+)/$ 
RewriteRule^%1 [R=301,L] 

確保在測試之前清除緩存。

相關問題