Post by gunner86 » Fri Sep 22, 2017 8:08 am

hi ,
when i use www...com , on admin panel and store , the icons dont seems . how can i fix that . thanks ...

Active Member

Posts

Joined
Wed Jul 09, 2014 3:43 pm

Post by IP_CAM » Fri Sep 22, 2017 11:50 am

This Problem cannot be 'solved', since FontAwesome only accepts the
config.php - configured way of linking a Shop Site.

In the .htaccess File, you have to add one of the Sections below,
depending on, what you have configured to be the DEFAULT URL, either
this Section, if you work as:
http:// yourshopsite

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteBase /
## ------------------------------------------------------##
#Force (http host) www to non www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

#Force (https host) www to non www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
## ------------------------------------------------------##
or then this Section, if you work as:
http:// www. yourshopsite

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteBase /
## ------------------------------------------------------##
#Force (http host) non www to www 
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#Force (https host) non www to www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
and don't forget, to have the:
RewriteEngine On
RewriteBase /

set to:
RewriteEngine On
RewriteBase /shop/

if your Shop Software is placed in a yoursite/shop/... Subdirectory !
Good Luck! ;)
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.


User avatar
Legendary Member

Posts

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

Post by gunner86 » Fri Sep 22, 2017 8:06 pm

one of my web site on config was as
http//example.com and was working correctly ...
i added the secon code block ( force non view to view ) in to the .access. that you send me , and then yes , it was forced to go always www.example.com ... but not enogh ... it has to be changed the codes in the config.php to the http//www.example.com
it is working well , now ...

but my other website in config.php file http//www.example2.com - with www. works normally and seems icons , but without www. the icons doesnt seems again ...
so i also changed the .access. file as first website ( force non view to view ) ... because if anyone want to get in to my shop without using www. , i dont want it to seems without icons ... but this time it doesnt be forced to direct to www. ???
what is the difference , am i doing something wrong ?

Active Member

Posts

Joined
Wed Jul 09, 2014 3:43 pm

Post by gunner86 » Sat Sep 23, 2017 2:19 am

# 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.clerkscart.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
RewriteBase /
## ------------------------------------------------------##
#Force (http host) non www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

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

# 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 ^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]

### 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

Active Member

Posts

Joined
Wed Jul 09, 2014 3:43 pm

Post by gunner86 » Sat Sep 23, 2017 2:36 am

i couldnt fix it correctly ... for those shit whole day i try to fix it ... isnt there any certain answer for that ... really this OC2 or further is really not good ... what kind of preblem is that , after 20 updates i couldnt be fixxed ? i didnt have that problem in OC 1.5.6.4 ...

Active Member

Posts

Joined
Wed Jul 09, 2014 3:43 pm

Post by IP_CAM » Sat Sep 23, 2017 7:28 am

Well, you CANNOT have this TWICE in your .htaccess file: ::)
# SEO URL Settings
RewriteEngine On
RewriteBase /

---
But nobody ever forced anyone, to 'move up' to another OC Version,
and after beeing around here for some time already, you should have
known better, if/by reading the masses of postings, related with this. :laugh:
---
And by use of the famous YOOHAN Theme, even a former Version could
do the Job in a very decent way: http://www.ebikes.li/ ;)

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.


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 26 guests