0
私はnice URLを作るために.htaccessを変更しました。 これは間違っていますか?RewriteRule .htaccessが複数動作していません
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9-/]+).html$ article.php?url=$1 [NC,L]
RewriteRule ^([a-zA-Z0-9-/]+).html/$ article.php?url=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^category/([a-zA-Z0-9-/]+).html$ category.php?cat=$1 [NC,L]
RewriteRule ^category/([a-zA-Z0-9-/]+).html/$ category.php?cat=$1 [NC,L]
と私はこの
localhost/category/bla.html
localhost/seo/bla.html
ようにするために希望この .htaccess rewriteRule conflict
から得て、これは、データベース内のURLです
bla.html
seo/bla-bla.html
あなたが達成しようとしているURLと元のURLは何ですか?seperatlyとお言いください。 –
ありがとう、私はやった。 –