SEO URL Rewrite 1.2.9
Posted: Mon Jun 22, 2009 2:12 pm
Let's talk about the new SEO Url rewrite in v.1.2.9
Issues:
1. Not all links are passed through the Seo Url funtion
2. the url_alias table could use indexes at query and alias columns
3. site pages like 'route=account/create' , 'route=checkout/cart' etc should be added by default or addable in admin.
4. it is not a good practice regenerating the whole 'url_alias' table after product/category/information update or add. the process takes 12 sec and more! (for 4000 products)
there should be a special page with the option to purge all Seo Urls
5. if an update of 'url_alias' table is made after product/category/information update or add should be a smart update with only the info it requires
I have hard coded some of the default links in admin/model/tool/seo_url.php
Issues:
1. Not all links are passed through the Seo Url funtion
2. the url_alias table could use indexes at query and alias columns
3. site pages like 'route=account/create' , 'route=checkout/cart' etc should be added by default or addable in admin.
4. it is not a good practice regenerating the whole 'url_alias' table after product/category/information update or add. the process takes 12 sec and more! (for 4000 products)
there should be a special page with the option to purge all Seo Urls
5. if an update of 'url_alias' table is made after product/category/information update or add should be a smart update with only the info it requires
I have hard coded some of the default links in admin/model/tool/seo_url.php
Code: Select all
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=common/home', `alias` = ''");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=product/special', `alias` = 'oferte-speciale'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=account/account', `alias` = 'cont'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=account/create', `alias` = 'inregistrare'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=product/latest', `alias` = 'noutati'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=account/login', `alias` = 'logare'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=account/logout', `alias` = 'delogare'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=checkout/cart', `alias` = 'cos-cumparaturi'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=checkout/shipping', `alias` = 'date-livrare'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=information/contact', `alias` = 'contact.html'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=information/sitemap', `alias` = 'harta-site.html'");
$this->db->query("INSERT INTO " . DB_PREFIX . "url_alias SET `query` = 'route=product/search', `alias` = 'harta-site.html'");