<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^viewuserimage/(.*) index.php?viewuserimage=$1 [L]
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
</IfModule>
ここに私の.htaccessファイルがあります。私は次のルールを処理せずに、viewuserimage /で始まるすべてのリクエストをindex.php?..に書き直したいと思います。私はmod_rewrite特定のルールの後に処理を停止します。
/viewuserimage/test
を渡す場合には出力:
index.php?page=index.php&viewuserimage=test
悲しいかなか働いていない – Chrisstar
今何ですか?新しい回答 – matiaslauriti
あなたはREQUEST_FILENAME条件を意味しますか?そうしても動作しません。 – Chrisstar