1
如何設置med.htaccess文件,因此它會重寫www.mydomain.com/index.php?page =訪問www.mydomain.com/home?.htaccess www.mydomain.com/index.php?page=home到www.mydomain.com/home
我試過這段代碼,但它不喜歡我想要的。
RewriteEngine敘述在 RewriteBase /在不對
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php?page= [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule ^([^/]+)/? index.php [L,QSA]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?page=$1 [L]