Post by jstuardo » Tue Jun 26, 2018 7:36 am

Hello,

I have OpenCart 3.x. SEO works good here but for OpenCart URL's.

For example, when going to manufacturers page, this URL is used:

/index.php?route=product/manufacturer

Why cannot use just "/manufacturers"?

As an approach, I have set this in .htaccess:

ReWriteRule ^home/$ index.php?route=common/home [L] #Home Page
RewriteRule ^contact/?$ index.php?route=information/contact [L] #Contact Page
ReWriteRule ^account/?$ index.php?route=account/account [L] #Account Page
ReWriteRule ^login/?$ index.php?route=account/login [L] #Login Page
ReWriteRule ^logout/?$ index.php?route=account/logout [L] #Logout Link
ReWriteRule ^cart/$ index.php?route=checkout/cart [L] #Cart Page
ReWriteRule ^checkout/$ index.php?route=checkout/checkout [L] #Checkout Page
ReWriteRule ^manufacturers/$ index.php?route=product/manufacturer [L] #Manufacturer Page
ReWriteRule ^specials/$ index.php?route=product/special [L] #Specials Page
ReWriteRule ^vouchers/$ index.php?route=account/voucher [L] #Voucher Page
ReWriteRule ^wishlist/$ index.php?route=account/wishlist [L] #Wishlist Page
ReWriteRule ^my-orders/$ index.php?route=account/orders [L] #Past Orders Page

However, the hard work is to change the links in all PHP files where those links are referenced. Doing this will avoid future upgrades to OpenCart, besides this is a very tedious work.

Is there a way to do it using best practices? why OpenCart programmers did not take this into account?

Thanks
Jaime

New member

Posts

Joined
Sat Apr 03, 2010 8:52 am

Post by IP_CAM » Tue Jun 26, 2018 7:49 am

Doing this will avoid future upgrades to OpenCart,
Well, better don't worry about this, nothing will be updated anyway,
from existing Files, if one upgrades an existing setup, but overwritten
at best. ;) OC does not offer upgrade Kits, but only full Versions.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by jstuardo » Tue Jun 26, 2018 8:28 pm

paulfeakins wrote:
Tue Jun 26, 2018 5:02 pm
You need this extension:
https://www.opencart.com/index.php?rout ... n_id=21827
That is for OC 2.x :(

New member

Posts

Joined
Sat Apr 03, 2010 8:52 am

Post by straightlight » Tue Jun 26, 2018 8:31 pm

jstuardo wrote:
Tue Jun 26, 2018 8:28 pm
paulfeakins wrote:
Tue Jun 26, 2018 5:02 pm
You need this extension:
https://www.opencart.com/index.php?rout ... n_id=21827
That is for OC 2.x :(
I don't understand this post, though. You did indicated a resolved solution about the SEO on this post: viewtopic.php?f=202&t=205282#p727452 . Am I missing something here?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jstuardo » Wed Jun 27, 2018 5:47 am

straightlight wrote:
Tue Jun 26, 2018 8:31 pm
jstuardo wrote:
Tue Jun 26, 2018 8:28 pm
paulfeakins wrote:
Tue Jun 26, 2018 5:02 pm
You need this extension:
https://www.opencart.com/index.php?rout ... n_id=21827
That is for OC 2.x :(
I don't understand this post, though. You did indicated a resolved solution about the SEO on this post: viewtopic.php?f=202&t=205282#p727452 . Am I missing something here?
I see you did not understand, or maybe you don't understand SEO in OpenCart. I have solved SEO, but for product, categories, information and for a certain munafacturer pages, but not for OpenCart internal pages. You could know that they are different.

I hope someone else not to get confused by your post. I will show an example to clarify:

For example, "/index.php?route=product/manufacturer" is the URL for manufacturers list. I need to have something like "/manufacturers" which is more user friendly. Like that page, there are other pages that I shown as part of my question. Please read again, specially when I wrote about .htaccess file.

Example above has nothing to do with keywords entered for products or categories to create the famous "slug" in order to make the SEO URL.

There are pages that talk about this problem but none solve it. Only one page says about modifying OpenCart core pages which is the worst practice.

Regards
Jaime

New member

Posts

Joined
Sat Apr 03, 2010 8:52 am
Who is online

Users browsing this forum: Semrush [Bot] and 604 guests