3

このように .htaccess をまとめることができ、正常に動作しています

RewriteRule ^$ /splash [L,R=301]        
RewriteCond %{HTTP_HOST}  ^example.com
RewriteRule (.*) http://www.examle.com/$1 [R=301,QSA,L]
RewriteRule ^([A-Za-z0-9-]+)?$ /index.php?cat=$1 [L]

これはexample.com/oneのようなものをhttp://www.example.com/index.php?cat=oneにリダイレクトします

ただし、現在のプロジェクトにさらに機能を追加して、複数の変数が解析されるようにしたいと考えています。たとえば、次のようになります。

example.com/category-one?another_variable=some_data&even_more=more_data, etc... 

解析される

http://www.example.com/index.php?cat=category-one&another_variable=some_data&even_more=more_data

また、このようなソリューションは seo フレンドリーですか?

4

2 に答える 2