Post by harap » Mon Sep 25, 2023 12:11 pm

Hello,

I have OC v4.0.2.3 installed.
How to get the SEO path without /en-gb/product/ ?
The existing path always show up like: mysite.com/en-gb/product/my-product-name/,
I want all products listing to get their individual SEO path like this: mysite.com/my-product-name/

Please advise. Thanks in advance!
Last edited by harap on Wed Sep 27, 2023 1:12 pm, edited 2 times in total.

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by Hourglasss » Mon Sep 25, 2023 7:34 pm

Design > SEO url

Active Member

Posts

Joined
Mon Jan 23, 2023 10:39 pm

Post by harap » Mon Sep 25, 2023 11:16 pm

Hello,
Can you please advise how to set it without /en-gb/product/ in Design>SEO url ? Thanks!

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by harap » Tue Sep 26, 2023 2:01 am

If I delete en-gb or any others from SEO url list, is there any potential issues for the site running?

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by harap » Wed Sep 27, 2023 1:12 pm

I deleted the en-gb and product keyword from Design>SEO.
How come "?route=product/product&language=en-gb" always follow the product's url instead?
Such as: mysite.com/my-product?route=product/product&language=en-gb

I want simply like: mysite.com/my-product.

Please help how to make it. Thanks in advance!

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by WaxedPerfection » Wed Sep 27, 2023 7:32 pm

harap wrote:
Wed Sep 27, 2023 1:12 pm
I deleted the en-gb and product keyword from Design>SEO.
How come "?route=product/product&language=en-gb" always follow the product's url instead?
Such as: mysite.com/my-product?route=product/product&language=en-gb

I want simply like: mysite.com/my-product.

Please help how to make it. Thanks in advance!
have you set up SEO urls, and set up each product / page with its own url?

here is how to for OC.3.X i have never setup SEO iv OC4.x but im sure it will be almost the same
https://www.opencart.com/blog?blog_id=206

another good page again for OC3.x but worth a read
https://webocreation.com/25-seo-best-pr ... #gsc.tab=0

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by paulfeakins » Wed Sep 27, 2023 7:50 pm

harap wrote:
Wed Sep 27, 2023 1:12 pm
I want simply like: mysite.com/my-product.
That's how OC 3 worked, is this not possible in OC 4?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

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

Post by WaxedPerfection » Wed Sep 27, 2023 8:24 pm

paulfeakins wrote:
Wed Sep 27, 2023 7:50 pm
harap wrote:
Wed Sep 27, 2023 1:12 pm
I want simply like: mysite.com/my-product.
That's how OC 3 worked, is this not possible in OC 4?
Maybe it is / was https://webocreation.com/how-to-remove- ... #gsc.tab=0
i will let your professional eye cast over it.

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by harap » Thu Sep 28, 2023 2:29 pm

WaxedPerfection wrote:
Wed Sep 27, 2023 8:24 pm
paulfeakins wrote:
Wed Sep 27, 2023 7:50 pm
harap wrote:
Wed Sep 27, 2023 1:12 pm
I want simply like: mysite.com/my-product.
That's how OC 3 worked, is this not possible in OC 4?
Maybe it is / was https://webocreation.com/how-to-remove- ... #gsc.tab=0
i will let your professional eye cast over it.
According to: https://webocreation.com/how-to-remove- ... #gsc.tab=0
I tested by replacing with:
if (!$js) {
return str_replace('en-gb/', '', str_replace('&', '&', $url));
} else {
return str_replace('en-gb/', '',$url);
}

It is not working.

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by WaxedPerfection » Thu Sep 28, 2023 3:07 pm

Looks like Paul was right then its not possible.

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by paulfeakins » Fri Sep 29, 2023 7:56 pm

WaxedPerfection wrote:
Thu Sep 28, 2023 3:07 pm
Looks like Paul was right then its not possible.
That is a shame for people who wanted cleaner URLs but probably not going to cause any SEO problems.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

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

Post by harap » Sun Oct 08, 2023 2:15 am

SEO url simply like "mysite.com/my-product" is working on OC version 2x and OC version 3x. How come not working on OC version 4.0.2.3 ?
I want to use the same SEO url for my product url on OC 4.0.2.3 to migrate from OC 2x.
Hope this mission is possible.

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by paulfeakins » Mon Oct 09, 2023 6:24 pm

harap wrote:
Sun Oct 08, 2023 2:15 am
SEO url simply like "mysite.com/my-product" is working on OC version 2x and OC version 3x. How come not working on OC version 4.0.2.3 ?
I want to use the same SEO url for my product url on OC 4.0.2.3 to migrate from OC 2x.
Hope this mission is possible.
You could set up 301 redirects in your .htaccess.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

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

Post by briggsbridget2 » Thu Oct 12, 2023 4:41 am

Hi All OC Experts,

I need some help with this as well.
I am using OC Version 4.0.2.1.
using Journal theme

I have enabled SEO URLs in System>Settings>Store>Server>Use SEO URLs
I have renamed .htaccess and RewriteEngine is ON

I do NOT have 'en-gb', 'information', 'manufacturers', 'product' or categories or any other keywords in Design>SEO URL
I have all above on my site
(Not sure if I need this and if yes, do not know what to add)

My site is not showing SEO-friendly URLs, it keeps showing me
mysite.com/my-product?route=product/product&language=en-gb

When adding 'en-gb' to Design>SEO URL it makes the SEO URL work but the page redirects back to the home page for all categories, information pages, products, and manufacturers. (but shows /en-gb/ in the path which I do not want)

I simply want clean URLs like

mysite.com/product
mysite.com/category
mysite.com/information-page
mysite.com/manufacturer

Thank you in advance for your help.


Posts

Joined
Mon May 30, 2022 12:31 am

Post by paulfeakins » Thu Oct 12, 2023 7:27 pm

briggsbridget2 wrote:
Thu Oct 12, 2023 4:41 am
My site is not showing SEO-friendly URLs, it keeps showing me
mysite.com/my-product?route=product/product&language=en-gb
This looks like a different problem so please start a new post.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

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

Post by decomuc » Tue Nov 28, 2023 9:40 am

briggsbridget2 wrote:
Thu Oct 12, 2023 4:41 am

My site is not showing SEO-friendly URLs, it keeps showing me
mysite.com/my-product?route=product/product&language=en-gb
You have installed Journal3.2 or a other template with sample data??
When yes, then the original seo_url entries from the standard installation are deleted.

Code: Select all

(0, 1, 'information_id', '1', 'about-us', 0),
(0, 1, 'information_id', '2', 'terms', 0),
(0, 1, 'information_id', '4', 'delivery', 0),
(0, 1, 'information_id', '3', 'privacy', 0),
(0, 1, 'language', 'en-gb', 'en-gb', -2),
(0, 1, 'route', 'information/information.info', 'info', 0),
(0, 1, 'route', 'information/information', 'information', -1),
(0, 1, 'route', 'product/product', 'product', -1),
(0, 1, 'route', 'product/category', 'catalog', -1),
(0, 1, 'route', 'product/manufacturer', 'brands', -1);
Thats the last part from the opencart.sql seo_url inserts...

After manual insert the missing parts you have no route=product/product&language=en-gb in your url, but mysite.com/en-gb/product/my-product

And then: Welcome to this thread :laugh:

Newbie

Posts

Joined
Mon Jun 01, 2020 1:58 am

Post by chongshengdz » Wed Nov 29, 2023 2:52 am

route=product/product&language=en-gb
you can try to remove the above code from product controller.

Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by paulfeakins » Wed Nov 29, 2023 8:28 pm

chongshengdz wrote:
Wed Nov 29, 2023 2:52 am
route=product/product&language=en-gb
you can try to remove the above code from product controller.
Sounds like a random guess that might break stuff ...

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

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

Users browsing this forum: No registered users and 1 guest