Post by fmartin » Thu Jul 01, 2010 4:37 am

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.

User avatar
Active Member

Posts

Joined
Thu Nov 05, 2009 5:47 am

Post by Xsecrets » Thu Jul 01, 2010 8:06 am

not in the "near" future.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by scanreg » Fri Jul 02, 2010 12:41 am

Xsecrets wrote:not in the "near" future.
Would love this feature, all sef urls, thanks

Active Member

Posts

Joined
Thu May 06, 2010 12:15 am

Post by vayu » Tue Sep 14, 2010 5:26 am

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! :-)

New member

Posts

Joined
Tue Sep 14, 2010 5:09 am

Post by scanreg » Mon Oct 04, 2010 8:06 pm

Could this thread be moved to the Feature Requests forum?

Thanks

Active Member

Posts

Joined
Thu May 06, 2010 12:15 am

Post by seanmichael » Sun Nov 07, 2010 6:11 am

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

New member

Posts

Joined
Thu Oct 14, 2010 2:02 am

Post by Evilfubar » Wed Nov 10, 2010 2:48 pm

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.

Newbie

Posts

Joined
Fri Nov 05, 2010 2:39 pm

Post by Johnathan » Wed Nov 10, 2010 10:21 pm

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

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by seanmichael » Wed Nov 10, 2010 11:10 pm

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?

New member

Posts

Joined
Thu Oct 14, 2010 2:02 am

Post by Johnathan » Thu Nov 11, 2010 12:52 pm

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.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by strutsam » Fri Dec 03, 2010 2:23 pm

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?

Newbie

Posts

Joined
Tue Oct 05, 2010 1:38 pm

Post by bogdan_ciocoiu » Fri Oct 14, 2011 7:49 am

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?

--
Bogdan Ciocoiu
http://www.bogdans.co.uk
http://www.directmall.co.uk
http://www.b2bconsult.co.uk
http://www.getcomputerservices.co.uk



Posts

Joined
Fri Oct 14, 2011 7:37 am


Post by Johnathan » Fri Oct 14, 2011 9:26 pm

The solution I detail here might work for you.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by BrettLefty » Sun Oct 23, 2011 10:23 am

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?

Newbie

Posts

Joined
Mon Oct 03, 2011 12:26 pm
Who is online

Users browsing this forum: No registered users and 55 guests