我使用htaccess的重寫我的網址所以這裏就是我:htaccess的重寫規則URL的
RewriteRule ^([^-]+),([a-z0-9._.-]+),([^-]+) index.php?go=$1&lang=$2 [L]
和代碼PHP:
function rewrite_seo($id, $title, $langs) {
global $core;
if($core->getSettings('seof')) {
$result = $id.','.$langs.','.changeSigns($title).'';
} else $result = '?go='.$id.'&lang='.$langs;
return $result;
}
我的網址是這樣的:
http://localhost/script/12,en,home
但想看起來像這樣:
http://localhost/script/en/home,12
如何修改此代碼?
是的,但我有一個404錯誤,因爲我不得不修改httacces,但我不能。 – johny321 2014-09-29 13:29:44
所以,你應該有或者嘗試改變:h新規則。 – erm3nda 2014-09-29 19:57:10