我使用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