我的网址
site.com/index.php/Article/ArticleList
我想成为它
site.com/Article/ArticleList
我没有。如何重写htaccess
答案 0 :(得分:1)
尝试此规则:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/([^/]+)/?$ /index.php/$1/$2 [NC,L]