Post by istyfu » Mon Jan 25, 2016 2:39 pm

Hi all,

i uploaded a newly buyed template and when i open it it shows some errors (See attachment). If i hit the refresh button or go to Home page (Fooldal) it becomes normal, so all the icons and sign are beeing showed. The link is http://www.bestial.hu
What could be the issue? Please help! Thank you!

Attachments

Capture.JPG

Capture.JPG (103.11 KiB) Viewed 1481 times


New member

Posts

Joined
Thu Jul 03, 2014 2:47 pm

Post by IP_CAM » Mon Jan 25, 2016 9:23 pm

with OC-2, you either have to configure:
http://www.yourshop.ext
or then:
http://yourshop.ext
in your config.php files, also, you have to configure your .htaccess as well, to 'rewrite'
any call, redirecting to the 'not allowed' URL to the right one.

http://forum.opencart.com/viewtopic.php ... le#p593705

Ernie
openshop.li/shop/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by istyfu » Tue Jan 26, 2016 12:44 am

Thank you, it worked!!! Great!!

IP_CAM wrote:with OC-2, you either have to configure:
http://www.yourshop.ext
or then:
http://yourshop.ext
in your config.php files, also, you have to configure your .htaccess as well, to 'rewrite'
any call, redirecting to the 'not allowed' URL to the right one.

http://forum.opencart.com/viewtopic.php ... le#p593705

Ernie
openshop.li/shop/

New member

Posts

Joined
Thu Jul 03, 2014 2:47 pm

Post by IP_CAM » Wed Jan 27, 2016 5:37 am

And for everybody else, this is the Code, to be placed on the .htaccess File:

FIND THIS:
# SEO URL Settings
RewriteEngine On
RewriteBase /
#OR:
#RewriteBase / shop/
#OR:
#RewriteBase / cart/
#OR:
#RewriteBase / whatever_your_shop_sub_is_called/
---
PLACE THE CODE CONTENT BELOW THE ABOVE:

Code: Select all

#Force (http host) www to non www (optional)
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

#Force (https host) www to non www (optional)
#RewriteCond %{HTTPS} on
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

#Force (http host) non www to www (optional)
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#Force (https host) non www to www (optional)
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
and use either one, by UNQUOTING the 'to be selected' way, i.E.,
as shown above, to make it WWW. only, however one comes into the Site.

But just make sure, NEVER to #unquote# plain Coder Help information Lines, like
#Force (http host) non www to www (optional)
or your Site will be dead! :choke:

And, by NATURE of THINGS; it has to MATCH the Shop config.php Settings!

with my best regards ;)
Ernie
openshop.li

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 2 guests