我有一個文件夾結構,這樣重寫每個URL進入目錄
/first/second/{application}
而且我想使得槽式htaccess的加載從應用內容沒有那些兩個目錄出現。所以www.domain.com
將加載www.domain.com/first/second
和www.domain.com/something/anything
將加載www.domain.com/first/second/something/anything
我RewriteRule ^(.*)$ /first/second/index.php/$1 [L]
試圖htacces在根文件夾,但沒有成功。
也許你得到一個內部服務器錯誤 – starkeen