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
Well, better don't worry about this, nothing will be updated anyway,Doing this will avoid future upgrades to OpenCart,
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.
You need this extension:
https://www.opencart.com/index.php?rout ... n_id=21827
https://www.opencart.com/index.php?rout ... n_id=21827
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
That is for OC 2.xpaulfeakins wrote: ↑Tue Jun 26, 2018 5:02 pmYou need this extension:
https://www.opencart.com/index.php?rout ... n_id=21827
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?jstuardo wrote: ↑Tue Jun 26, 2018 8:28 pmThat is for OC 2.xpaulfeakins wrote: ↑Tue Jun 26, 2018 5:02 pmYou need this extension:
https://www.opencart.com/index.php?rout ... n_id=21827
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.straightlight wrote: ↑Tue Jun 26, 2018 8:31 pmI 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?jstuardo wrote: ↑Tue Jun 26, 2018 8:28 pmThat is for OC 2.xpaulfeakins wrote: ↑Tue Jun 26, 2018 5:02 pmYou need this extension:
https://www.opencart.com/index.php?rout ... n_id=21827
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
Who is online
Users browsing this forum: Semrush [Bot] and 604 guests