I have OC 2.2.0.0, Journal, SEO Mega Kit. Journal cache deleted. After enabling SSL, modifying config files I have broken image URLs not showing https so it is not displaying these images. I have forced SSL to be used always.
Any help?
Regards
Ladislav
It's a tech place here, not an esoteric heaven.
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.
Change all HTTP to HTTPS in both config files.
Also post a link.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
of course I use https in config.php. Maybe there is something wrong with .htaccess? I can't let it be like this because it is live eshop.
# 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 "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
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/
RewriteCond %{HTTPS} !=on
# This checks to make sure the connection is not already HTTPS
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Code: Select all
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/
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.
one is doing. But if one wants to find out, GOOGLE is FULL of such Information.
That's the whole thing, including the RewriteBase / Line:
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 /
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.
a solution is given here
viewtopic.php?f=190&t=182662&p=669287&h ... ix#p669287
Make sure you also set admin to ssl, otherwise admin sets images to http instead of https
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
Regards,
OCGURU - http://www.buy-extensions.com/
Opencart Developer - All My Opencart Extensions
Contact Me - outputwebtech@gmail.com
Skype - ntiersolutions
ripper wrote: ↑Tue May 15, 2018 3:30 amhi,
of course I use https in config.php. Maybe there is something wrong with .htaccess? I can't let it be like this because it is live eshop.
# 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 "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
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/
RewriteCond %{HTTPS} !=on
# This checks to make sure the connection is not already HTTPS
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
OpenCart Support | Please email at: devinlabsolutions@gmail.com
in Admin section I can see all images.
My .htaccess. Is there something wrong?
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 "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
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/
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteRule ^image-smp/(.*) index.php?route=product/smp_image&name=$1 [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} ^sperkyaja.cz$ [NC]
# RewriteCond %{HTTPS} off
#RewriteRule ^/?$ http://www.sperkyaja.cz/ [R=301,L]
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#RewriteCond %{HTTPS} on
#RewriteRule http://.*\.jpg$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#RewriteRule http://.*\.jpeg$ https://%{HTTP_HOST}%{REQUEST_URI} [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
this problem is very unique and everyone should know this answer so I posting its answer publicly. Let me explain the problem and its answer. Your all htaccess code is correct. there is no problem anywhere. only the thing is did by your developer or by you is you disabled # Options +FollowSymlinks this. since this line code does exactly that you need with your site url and its other link that is associated following site url. I know why this code is disabled. since if you enable this site will give 500 ERROR. it should to be enabled. since you or anyone or maybe by your server Check to make sure that your httpd.conf file has AllowOverride All. setting is disabled.
I am giving you some link about this setting in detail. how you can enable this. and where you can found this all settings.
Let me know if you still getting this problem.
https://stackoverflow.com/questions/121 ... owsymlinks
https://www.phusionpassenger.com/librar ... _file.html
ripper wrote: ↑Thu Aug 16, 2018 4:34 pmhi,
in Admin section I can see all images.
My .htaccess. Is there something wrong?
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 "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> 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/ RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] RewriteRule ^image-smp/(.*) index.php?route=product/smp_image&name=$1 [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} ^sperkyaja.cz$ [NC] # RewriteCond %{HTTPS} off #RewriteRule ^/?$ http://www.sperkyaja.cz/ [R=301,L] # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] #RewriteCond %{HTTPS} on #RewriteRule http://.*\.jpg$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] #RewriteRule http://.*\.jpeg$ https://%{HTTP_HOST}%{REQUEST_URI} [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
OpenCart Support | Please email at: devinlabsolutions@gmail.com
Well, you force me to temporary break my silence, but your Information if NOT correct,Your all htaccess code is correct. there is no problem anywhere.
the REWRITE BASE Line is missing, and therefore, this Place will not work.
As I already mentioned above ...
Ernie
# SEO URL Settings
RewriteEngine On
RewriteBase /
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.
hi,IP_CAM wrote: ↑Sat Aug 18, 2018 9:53 amWell, you force me to temporary break my silence, but your Information if NOT correct,Your all htaccess code is correct. there is no problem anywhere.
the REWRITE BASE Line is missing, and therefore, this Place will not work.
As I already mentioned above ...
Ernie
# SEO URL Settings
RewriteEngine On
RewriteBase /
# SEO URL Settings
RewriteEngine On
RewriteBase /
is there in place, the situation is the same.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
Users browsing this forum: No registered users and 153 guests