RewriteRule ^([a-zA-Z0-9]+)/$ index.php?$1=1 [L]
RewriteRule ^([a-zA-Z0-9]+)$ index.php?$1=1 [L]
#if category
RewriteRule ^category/([a-zA-Z0-9]+)/$ index.php?results=true&lid=$1 [L,NC]
RewriteRule ^category/([a-zA-Z0-9]+)$ index.php?results=true&lid=$1 [L,NC]
最初のセクションは問題なく動作します.urlにカテゴリを追加すると、どこでも他のパラメータの前にカテゴリが書き込まれるため、cssと画像が消えます.
mywebsite.com/category/380 は mywebsite.com/index.php?results=true&lid=380 にリダイレクトする必要がありますが、元の URL には写真と CSS がありますが、クリーンな URL にはありません。