私はワードプレスページをどこかにリダイレクトする必要があります。htaccess redirect GET /?param = str to example.com/somewhere
http://example.com/?na=s
http://example.com/somewhere/
に私はこれを試してみましたが、それは動作しません。
RewriteCond %{QUERY_STRING} !^na=s$
RewriteRule !^/$ http://example.com/somewhere/? [L,R=301]
全ファイル
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{QUERY_STRING} !^na=s$
RewriteRule ^/$ http://example.com/somewhere/? [L,R=301]
</IfModule>
タイトルの「Htacess」は入力ミスですか? – MrWhite