I have searched the forum high and low, but unfortunately, I could not find the answer to this question, so apologies if it has already been answered or is painfully obvious.
I am trying to change the index.php?route=product/product&path=61&product_id=53 section of each product to be more SEO friendly by using store/product-name.html instead. Is this possible? I am used to using Magento but I find that it is too temperamental and changing something causes errors elsewhere, so I am trying to find my way around Opencart as my new permanent solution but cannot find how to use the SEO URL value over the product id.
Is this even possible?
Each product has been given an SEO URL value in the data section of the product creation page, but I still get the product id=53 in the URL on the frontend.
Any help, even if it means purchasing an extension would be greatly appreciated.
Thank you.
Which version of opencart are you using? You say you gave all products seo urls, but did you rename htaaccess.txt to .htaaccess and turn on seo urls in settings?
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Thanks for the info, I did not turn on the SEO URLs in the general settings. I wondered why these we not working
This led to a 404 error though on every product so I double checked the .htaccess file. I changed the .htaccess file after I installed but it remained as a .txt file, so I have just changed it to a .htaccess file which now sends me back to the xampp dashboard, no matter what product I click.
If SEO URL is turned off though it does work fine but goes back to the product ID so i am guessing the error is there somewhere.
Is there a way to fix this error do you know
I am using version 2.3.0.2 BTW.
Thanks
It would seem that your store is located in a sub-folder of your XAMPP installation. Set the RewriteBase in your .htaccess to point to that sub-folder, e.g.:Crumpy1 wrote:... I have just changed it to a .htaccess file which now sends me back to the xampp dashboard, no matter what product I click.
Code: Select all
RewriteBase /sub-folder/
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Apologies if the answer is obvious.
my store is located in root/ocart/(store files)
the URL SEO Link goes to http://127.0.0.1/PCM/ocart/upload/fully ... e-commerce as an example.
I have amended the .htaccess file with the following:
Code: Select all
# 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 /ocart/
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) 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]
Did I do something wrong??
From this, I would hazard a guess that your RewriteBase should be:Crumpy1 wrote:the URL SEO Link goes to http://127.0.0.1/PCM/ocart/upload/fully ... e-commerce as an example.
Code: Select all
RewriteBase /PCM/ocart/upload/
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
I have just uploaded the store to the server but again this annoying 404 error occurs.
Temp URL for the store: http://gator4253.hostgator.com/~crumpy360/store/upload/
I have amended the .htaccess file to the new sub-directory which I believe should be:
Code: Select all
RewriteBase /home3/crumpy360/public_html/store/upload/
Code: Select all
define('DIR_APPLICATION', 'home3/crumpy360/public_html/store/upload/catalog/');
and does work for everything (that i can see) with the exception of this issue.
Do you have any idea why this could not be working? I am sure this is the correct directory and it works perfectly with SEO URL's off.
Any help would be helpful as i am literally out of ideas
Thank you!!!!!
Code: Select all
RewriteBase /store/upload/
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Code: Select all
RewriteBase /~crumpy360/store/upload/
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Users browsing this forum: No registered users and 189 guests