Page 2 of 2
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Thu Jul 01, 2010 4:37 am
by fmartin
Xsecrets wrote:things like the homepage and contact sitemap etc are not rewritten.
Are there plans to implement this in the near future?
Thank you.
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Thu Jul 01, 2010 8:06 am
by Xsecrets
not in the "near" future.
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Fri Jul 02, 2010 12:41 am
by scanreg
Xsecrets wrote:not in the "near" future.
Would love this feature, all sef urls, thanks
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Tue Sep 14, 2010 5:26 am
by vayu
I too am in favor of SEf urls on all urls, not just some. I hope this feature is in its making. Keep up the great work! :-)
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Mon Oct 04, 2010 8:06 pm
by scanreg
Could this thread be moved to the Feature Requests forum?
Thanks
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Sun Nov 07, 2010 6:11 am
by seanmichael
Xsecrets wrote:seo urls are included. they are just not active on the demo, but no even in the latest versions things like the homepage and contact sitemap etc are not rewritten. just products/categories/manufacturers
Why not the contact or sitemap or login?
these would be very nice and make the site look much more clean
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Wed Nov 10, 2010 2:48 pm
by Evilfubar
I am using version 1.4.9.1
I have populated the mapping in SQL
I changed /catalog/controller/common/seo_url.php to the code you provided
I changed /catalog/model/tool/seo_url.php to the code you provided
When I look at /catalog/controller/common/header.php the code you want me to edit does not match up on the header.php in version 1.4.9.1
When I try to change the code and load my site, I get a blank web page. Either they change header.php enough so the code doesnt work, or I do not know exactly what to edit on header.php in the most current version.
Please help

I really want to get rid of those nasty urls.
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Wed Nov 10, 2010 10:21 pm
by Johnathan
There's an easier way to do this (at least for the home page) using htaccess that I detail here:
http://forum.opencart.com/viewtopic.php?f=24&t=17533
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Wed Nov 10, 2010 11:10 pm
by seanmichael
true, but that's only for the home link...right? I don't think it works for the contact page or login or cart...right?
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Thu Nov 11, 2010 12:52 pm
by Johnathan
I had an htaccess solution that worked for the contact and sitemap pages, but there was a bug with it. I'll take a look at it when I get time and see if I can get it working. Login and cart are going to have to be rewritten through the OpenCart SEO, but I haven't ever tried the method in this thread.
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Fri Nov 12, 2010 9:09 am
by Evilfubar
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Fri Dec 03, 2010 2:23 pm
by strutsam
I think what you've done here is great. My only query is with the google sitemap created by opencart - it will look something like this:
mysite.com/iphone
mysite.com/phones
mysite.com/iphone
mysite.com/apple
mysite.com/iphone
So the same product will be listed several times in the google sitemap - at least it's pointing to the same page. Does it matter that the same product is listed several times?
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Fri Oct 14, 2011 7:49 am
by bogdan_ciocoiu
Probably it's a bit strange to post after all this time but this link turned to be the most relevant on a deep Google search. I'm following up a brainstorm which took at 2 weeks...
I need to replicate a Magento installation with the following characteristics:
- ~15k products (so I can't change links)
- products are sitting on 2 level category structure (so it's like /cat1/cat2/product.html)
- when I'm moving on the canonical url of a product the cats should pump out form the url so i should only remain with the product part (/product.html)
It turns out that Magento has an option from where you can choose if you want the cats on not in the menu.
Not within the last 2 weeks I've searched for options on the major e-commerce platforms - this one came out - it was my favorite so I'm looking to settle myself up with opencart BUT I'm still looking for a way to have the categories SEO structured (/cat1/cat2/) and when it comes for the product to have it from root (to lose the categories e.g.: /product.html).
1. There is that small trick which includes removing the ./ from the SEO links PHP file - probably everyone knows that trick but I'm afraid it can damage more than we can see.
2. The only official alternative is to NOT set SEO links to the categories. This will print very ugly links for the cats but the product will start from / and it'll have a clean form.
Now the second major option is Prestashop it doesn't lose the last category for nothing in the world so Presta was out from day one of the research.
Again - as I stand now - if i'll not obtain a stable solution for my problem probably I'll sacrifice the categories in order to be sure no harm will be done by changing the SEO php internal file.
Any ideas?
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Fri Oct 14, 2011 9:26 pm
by Johnathan
The solution I detail
here might work for you.
Re: [SEO] SEF URL does not rewrite the home link?
Posted: Sun Oct 23, 2011 10:23 am
by BrettLefty
Hey guys, I have figured out a way to fix "[SEO] SEF URL does not rewrite the home link?"
Just go to header.php and find line 82:
Code: Select all
$this->data['home'] = $this->url->link('common/home');
replace that with...
Code: Select all
$this->data['home'] = 'http://' . $_SERVER['HTTP_HOST'];
will there be any repercussions to doing it this way?