http://www.example.com/blog/demo/first-post
http://www.example.com/blog/test/second-post
上記のURLを次のように書き換えたいと思います
http://www.example.com/first-post
http://www.example.com/second-post
私が使用した:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /demo/$1 [L]
しかし、それはtestでは機能しません。助けてください。