Here is a little hack to get nice seo urls for home, special offers, account, etc.
Just replace the code in system/engine/url.php by this one :
Code: Select all
<?php
final class Url {
public function http($route) {
if ($route == 'common/home') return HTTP_SERVER;
return HTTP_SERVER . (Registry::get('config')->get('config_seo_url') && in_array($route,array('product/special','account/account','account/login','account/logout','checkout/cart','checkout/shipping','information/contact','information/sitemap')) ? $route : 'index.php?route=' . str_replace('&', '&', $route));
}
public function https($route) {
return (HTTPS_SERVER != '' ? HTTPS_SERVER : HTTP_SERVER) . (Registry::get('config')->get('config_seo_url') && in_array($route,array('product/special','account/account','account/login','account/logout','checkout/cart','checkout/shipping','information/contact','information/sitemap')) ? $route : 'index.php?route=' . str_replace('&', '&', $route));
}
}
?>
Code: Select all
switch ($this->request->get['_route_']) {
case '':
case 'product/special':
case 'account/account':
case 'account/login':
case 'account/logout':
case 'checkout/cart':
case 'checkout/shipping':
case 'information/contact':
case 'information/sitemap':
$this->request->get['route'] = $this->request->get['_route_'];
return $this->forward($this->request->get['route']);
}
Off course you'll have to set SEO URLS on in your admin pannel and move .httaccess.txt to .htaccess, as explained.