所以我一直试图让我的网址看起来更好,但我不能让它按我的意图工作,所以这里可能会有一些不错的灵魂可以帮助我。htaccess整理网址
我需要
前帮助:www.domain.com/project/index.php?p=settings & U = 123 & L =ķ
看起来像www.domain.com/项目/设置
我想使用index.php被删除,所有的第一个可变量之后,在这种情况下,p =设置,并且还去掉?p =
我得到这个现在
RewriteEngine On
RewriteBase/
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
可能重复:MOD \ _rewrite,URL重写和“相当链接”解释](http://stackoverflow.com/questions/20563772/reference-mod-rewrite-url-rewriting-and-pretty-links-explained) – deceze