コード行:
RewriteRule ^/test/(.*)/?$ http://test.com/test/index.php?route=$1 [L,QSA]
私が使用しているhtaccessファイルには効果がありません:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^/test/(.*)/?$ http://test.com/test/index.php?route=$1 [L,QSA]
</IfModule>
# END WordPress
domain.com/test/123 にアクセスすると、Wordpress は新しいリンクではなく 404 ページにリダイレクトされます。上書きされている場合に備えて、htaccessファイル内のアイテムを移動しようとしましたが、うまくいきませんでした。何か案は?