Redirect 301 /resort.php/FOO/BAR http://www.sitename.com.com/index.php
RewriteRule ^/direct/(.*) /direct/$1 [QSA,L] # access non i18n files directly
RewriteRule ^/([a-z]{2}\/.*) /$1 [QSA,L] #any language subdirectory should be left alone
RewriteRule ^/(.*\/$) /en/$1index.php [QSA,L] #fix for links ending in /
RewriteRule ^/(.*\.php) /en/$1 [QSA,L] #any php file with no language subdirectory redirects to the default language
最初のリダイレクト 301 がホームページに行かない理由は何ですか? と交換すると..
RewriteRule ^/resort.php(.*) http://www.sitename.com/index.php [R=301,L]
それは働き始めます。私にはたくさんのルールがあり、あるルールから別のルールに飛び移るからだと思います。
私のディレクトリ構造は次のようなものです:
/en/index.php
/direct/
ルートに /index.php がありません。最初は en にリダイレクトしています。