ファイルに多くの正規表現を検索して実装しました.htaccess
が、成功しません。URL を SEO フレンドリーにする一般的な方法を見つけるには?
現在、これは私の.htaccess
ファイルにあります:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
私がする必要があるのは、次のように URL を変更することです。
http://localhost/abc/index.php?page=boats_for_sale
これに:
http://localhost/abc/boats_for_sale
同様に、URL 内のすべてのクエリ文字列を非表示にしたいと考えています。
どうすればそれを達成できますか?