I have recently installed a SSL on my opencart and since, URL's SEo doesn't work correctly.
SEO are actived , it's probably a .htacess problem...
Example:
In the category equipment I have this url : https://www.brasseursartisans.com/index ... quipements
And I want : https://www.brasseursartisans.com/equipements
Can you help me?
Thanks
Code: Select all
# 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 Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
#.htaccess SETTINGS TO TURN OFF
# STUPID MAGIC QUOTES IN PHP
# I HATE MAGIC QUOTES PROBLEMS
#php_flag magic_quotes_gpc off
# 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=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^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]
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteRule ^index\.php$ https://www.brasseursartisans.com? [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
# php_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
# php_value max_execution_time 200
# 6. set max time for input to be recieved. 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 200
# 7. disable open_basedir limitations
# php_admin_value open_basedir none
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Try this: in catalog/controller/module/category.php, change line 46 from:
Code: Select all
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'])
Code: Select all
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id', 'SSL'])
Code: Select all
'href' => $this->url->link('product/category', 'path=' . $category['category_id'])
Code: Select all
'href' => $this->url->link('product/category', 'path=' . $category['category_id', 'SSL'])
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!
The manipulation doesn't work..
This is my code (Not the same synthaxe of your exemple):
Code: Select all
);
$product_total = $this->model_catalog_product->getTotalProducts($data);
if ($this->config->get('config_product_count')) {
$l3_data[] = array(
'category_id' => $l3['category_id'],
'name' => $l3['name']. ' (' . $product_total . ')',
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']. '_' . $l3['category_id'])
);
} else {
$l3_data[] = array(
'category_id' => $l3['category_id'],
'name' => $l3['name'],
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']. '_' . $l3['category_id'])
);
}
}
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!
+ this trick anyway doesn't work with FB iframe tab - because last just doesn't allow to follow not secured links
I guess we all want SSL everywhere for SEO purposes (new Google guidelines) but as long as you add something like this in your .htaccess to force all pages to load in https:
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
That's too bad. I am sure I did not modify the controller (don't have the skill for that!). Any help on this?
Thanks!
Calgary Web Design - http://www.beginwithb.com
First I changed the config.php in both admin and root directories
Then I logged into admin and settings and turned ssl on there
Then added Code below to my htaccess file.
Code: Select all
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Opencart sites I am currently working on:
http://www.cablecafe.co.uk
http://www.exclusivelygorgeous.co.uk/
Code: Select all
RewriteCond %{QUERY_STRING} !^route=ebay/openbay/*
Code: Select all
RewriteCond %{HTTPS} off
Code: Select all
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Opencart sites I am currently working on:
http://www.cablecafe.co.uk
http://www.exclusivelygorgeous.co.uk/
Your method is the same as the one I've tried. Yes the SSL works everywhere but no your URL are no longer SE friendly as it can read "index.php?route=....", at least on my OC 1.5.5.1 version.
I finally ended up buying this extension Force SSL Everywhere http://www.opencart.com/index.php?route ... n_id=22017 which works beautifully and keeps URL Search Engine Friendly.
Cheers.
Calgary Web Design - http://www.beginwithb.com
Look at the code there is a difference. It works fine for me and my pages are all SEO friendly
Opencart sites I am currently working on:
http://www.cablecafe.co.uk
http://www.exclusivelygorgeous.co.uk/
Calgary Web Design - http://www.beginwithb.com
But right now we have a SEO URL problem with the site built with OPENCART.
Here is it :
http://www.theledmaster.com/Car-Racing- ... lood-Light
http://www.theledmaster.com/LED-Lightin ... lood-Light
http://www.theledmaster.com/LED-Lightin ... lood-Light
Basicly these three are the same product, but there are three different URL.that is not good for SEO.
And my friend is on vocation, he will not return till 8th Oct.
Can someone help me out ? Please.
Contact me at:
melvincheung228@gmail.com
Thanks.
Code: Select all
<link href="http://www.theledmaster.com/Car-Racing-Lighting-1000-Watt-LED-Flood-Light" rel="canonical" />
I couldn't get the add to cart working on my home page but your code worked great for me, and I still have SEO friendly URLS.
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Thank You!!!
As you all discussing SEO and SSL. So anyone can tell me how to convert any website from HTTP to HTTPS?
Just waiting for someone's reply..!!
It would be great if anyone helps me.
Thanks in advance...!!!!!
Well, just search Google, the Web and this Forum are full of it. And if you don't understand,It would be great if anyone helps me.
you can always get it done by one of the Professionals. ( But only, if you not making a secret
about your OC Version and Site URL used...)
Good Luck!
Ernie
---
viewtopic.php?f=179&t=191641#p690629
viewtopic.php?f=190&t=171302&p=656833#p656833
https://www.google.com/search?q=Opencart+SSL
http://docs.opencart.com/administration/ssl/
https://www.fastcomet.com/tutorials/ope ... enable-ssl
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.
As you all discussing SEO and SSL. So anyone can tell me it is possible to rank a non-https website on google first position for a particular keyword?
Just waiting for someone's reply..!!
It would be great if anyone helps me.
Thanks ...!!!!
As you all discussing SEO and SSL. So anyone can tell me how to convert any website from HTTP to HTTPS?
Just waiting for someone's reply..!!
It would be great if anyone helps me.
Thanks
SEO Classes in Nagpur
Users browsing this forum: No registered users and 158 guests