Post by jimmisavage » Sun Jan 11, 2015 10:26 pm

Hi all,
Is there a way to delete the little square box before header links? See the very top of the page - my account, wishlist etc http://www.teesmedesigns.co.uk/index.php

New member

Posts

Joined
Sun Jan 11, 2015 9:32 pm

Post by melbagnato » Mon Jan 12, 2015 1:07 pm

Those little squares are where the icons normally appear. It could be some .htaccess file on your server that might be restricting access to the icon files.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by jimmisavage » Tue Jan 13, 2015 6:00 pm

Thanks Mel,
It seems to have fixed itself now but every so often it reverts back to the squares. Has anyone else ever come across this?

Many thanks
Stuart

New member

Posts

Joined
Sun Jan 11, 2015 9:32 pm

Post by alexc » Tue Jan 13, 2015 7:27 pm

We've noticed this when accessing our site with/without the www prefix.

Newbie

Posts

Joined
Tue Jan 13, 2015 3:39 am

Post by melbagnato » Wed Jan 14, 2015 7:19 am

Hi Stuart,

this is a known problem. Modify your .htaccess file to always redirect to the www url. That way no matter what your user enters they are taken to the domain with your icons showing. And check that you aren't restricting access to the icons.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by jimmisavage » Sun Jan 18, 2015 4:43 am

melbagnato wrote:Hi Stuart,

this is a known problem. Modify your .htaccess file to always redirect to the www url. That way no matter what your user enters they are taken to the domain with your icons showing. And check that you aren't restricting access to the icons.

- Mel
Hi Mel,
I cannot find my .htaccess file on my server but have found a copy from the original .zip. What exactly whould i be changing in here? For me it seems like i lose the icons when it starts with www and i get the icons without it.

Many thanks

New member

Posts

Joined
Sun Jan 11, 2015 9:32 pm

Post by dabomb59404 » Sun Jan 18, 2015 5:41 am

This should help you on what to add to it.
http://www.htaccessbasics.com/force-www-nonwww-domain

User avatar
Active Member

Posts

Joined
Thu Jun 09, 2011 5:21 am

Post by jimmisavage » Sun Jan 18, 2015 6:11 am

dabomb59404 wrote:This should help you on what to add to it.
http://www.htaccessbasics.com/force-www-nonwww-domain
Thanks very much. I have added the script to the bottom of the file and uploaded to where the opencart filders are uploaded (same place as index.php) but it doesn't seem to make any difference. Can anyone please help me work out what i've done wrone please?

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/ 

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]

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

# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.teesmedesigns\.co.uk [NC]
RewriteRule (.*) http://teesmedesigns.co.uk/$1 [R=301,L]

New member

Posts

Joined
Sun Jan 11, 2015 9:32 pm

Post by dabomb59404 » Sun Jan 18, 2015 6:48 am

Try this:
RewriteCond %{HTTP_HOST} ^www\.teesmedesigns\.co\.uk [NC]
RewriteRule (.*) http://teesmedesigns.co.uk/$1 [R=301,L]

Also make sure the file is named .htaccess and not .htaccess.txt.

User avatar
Active Member

Posts

Joined
Thu Jun 09, 2011 5:21 am

Post by jimmisavage » Sun Jan 18, 2015 6:34 pm

dabomb59404 wrote:Try this:
RewriteCond %{HTTP_HOST} ^www\.teesmedesigns\.co\.uk [NC]
RewriteRule (.*) http://teesmedesigns.co.uk/$1 [R=301,L]

Also make sure the file is named .htaccess and not .htaccess.txt.
Perfect, thank you. This code worked:
RewriteCond %{HTTP_HOST} ^www\.teesmedesigns\.co\.uk [NC]
RewriteRule (.*) http://teesmedesigns.co.uk/$1 [R=301,L]

but it was named .txt - I couldn't simply rename this to remove the .txt so for anyone looking to resolve this you have to save as ".htaccess" including the quotes! Uploading that file fixed my issue.

Thanks everyone! :)

New member

Posts

Joined
Sun Jan 11, 2015 9:32 pm
Who is online

Users browsing this forum: No registered users and 172 guests