RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-f#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]RewriteRule ^(.*)\.html$ index.php?g=portal&m=index&a=$1
http://www.test.com/index.php?g=portal&m=index&a=index
http://www.test.com/index.php?g=portal&m=index&a=services
http://www.test.com/index.php?g=portal&m=index&a=partner
......
轉化成
http://www.test.com/index.html
http://www.test.com/services.html
http://www.test.com/partner.html
....
首頁的時候導航顯示已經實現偽靜態
可是一跳到其他的頁面,比如services partner
又變成了http://www.test.com/index.php?g=portal&m=index&a=partner
不明白?
回複內容:
RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-f#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]RewriteRule ^(.*)\.html$ index.php?g=portal&m=index&a=$1
http://www.test.com/index.php?g=portal&m=index&a=index
http://www.test.com/index.php?g=portal&m=index&a=services
http://www.test.com/index.php?g=portal&m=index&a=partner
......
轉化成
http://www.test.com/index.html
http://www.test.com/services.html
http://www.test.com/partner.html
....
首頁的時候導航顯示已經實現偽靜態
可是一跳到其他的頁面,比如services partner
又變成了http://www.test.com/index.php?g=portal&m=index&a=partner
不明白?