Post by torm1358 » Fri May 21, 2021 10:02 pm

We are an online eyewear seller, specialising on 3D and 2D glasses. I use SEO on my website, which works fine on the categories and many of our products. However, on some of our products, which have many options, it does not. For example, https://optics3d.co.uk/index.php?route= ... uct_id=186 should be https://optics3d.co.uk/RxMono3D/Prescri ... o3D-Linear. This product has 39 options. On the product setup page in admin, I have tried entering the desired unique SEO and website says that the changes are saved, but they are not. I had already edited the .htaccess file to allow more options. This is as follows:

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directory listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
# Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
Order deny,allow
Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
hp_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
hp_value max_execution_time 4800

# 6. set max time for input to be received. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
php_value max_input_time 4800

# 7. disable open_basedir limitations
# php_admin_value open_basedir none

Is there anything I can do to allow SEOs on products with so many options?

We are using Opencart Version 3.0.3.6.
Last edited by torm1358 on Fri May 21, 2021 11:39 pm, edited 1 time in total.

New member

Posts

Joined
Tue Oct 11, 2016 11:03 pm

Post by torm1358 » Fri May 21, 2021 10:08 pm

P.S. We have 60 SEOs
Last edited by torm1358 on Fri May 21, 2021 10:15 pm, edited 1 time in total.

New member

Posts

Joined
Tue Oct 11, 2016 11:03 pm

Post by mikeinterserv » Fri May 21, 2021 10:14 pm

your htaccess is wrong for https, well not wrong but use this instead.
try

Code: Select all

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://optics3d.co.uk%{REQUEST_URI} [NE,L,R=301]]
Last edited by mikeinterserv on Fri May 21, 2021 10:40 pm, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by torm1358 » Fri May 21, 2021 10:26 pm

Thank you for your reply. Please forgive me being a complete newbie, but where do I put this code? Do I put this after RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L], or do I need to replace some of the code already there?

New member

Posts

Joined
Tue Oct 11, 2016 11:03 pm

Post by mikeinterserv » Fri May 21, 2021 10:35 pm

Replace

Code: Select all

RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
With the above in your htaccess file.

It is difficult to tell from the front end but as you say NO seo url is being generated for that product.
It may not be the options. Carefully check the seo setup again

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by JNeuhoff » Fri May 21, 2021 11:23 pm

Since some of your SEO keywords seem to work for products with fewer options it looks to me more like an issue with your PHP settings. E.g. in the admin backend, even though it says your product is saved, it might have missed out some fields or options. Increase the values for the following PHP settings:

post_max_size
max_input_vars

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by torm1358 » Fri May 21, 2021 11:39 pm

Good news - I have figured out a work around. I have found that manually entering SEOs on the SEO URL page for each of the products works. Thank you two very much for your help, it is much appreciated.

New member

Posts

Joined
Tue Oct 11, 2016 11:03 pm

Post by OSWorX » Sun May 23, 2021 8:57 am

torm1358 wrote:
Fri May 21, 2021 11:39 pm
Good news - I have figured out a work around. I have found that manually entering SEOs on the SEO URL page for each of the products works.
".. manually entering .." means what?
How have you done this before - using an extension for that?
It seems you haven't told us the whole story ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Mon May 24, 2021 7:31 pm

JNeuhoff wrote:
Fri May 21, 2021 11:23 pm
Since some of your SEO keywords seem to work for products with fewer options it looks to me more like an issue with your PHP settings. E.g. in the admin backend, even though it says your product is saved, it might have missed out some fields or options. Increase the values for the following PHP settings:

post_max_size
max_input_vars
^ I reckon this is the issue, so you should fix this to avoid other issues.

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: JessiesBoutique, pprmkr and 507 guests