所以我一直試圖讓我的網址看起來更好,但我不能讓它按我的意圖工作,所以這裏可能會有一些不錯的靈魂可以幫助我。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