1
我使用此代碼重寫.htaccess的國防部重寫問題
example.com/sample-file.php到example.com/sample-file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
我怎樣才能重定向這樣的:
example.com/sample-file到example.com/sample-file/