Jump to content

Favicon Problem with Apple


ciroanat

Recommended Posts

Hello to everyone,

I have a problem about favicon: On Android and Chrome the favicon is working correctly, but on Apple devices won't work (only shows a question mark as favicon).

I've read about Real Favicon Generator and it seems to be great for everyone, but I don't know where to put generated files...

Can you help me, please?

 

My prestashop version: 1.6.1.5

 

Thank you,
Ciro Anatriello

Link to comment
Share on other sites

  • 4 weeks later...

I finally found a solution which worked out:

1. Move everything that belongs to prestashop into a subfolder, for example /shop

2. Leave apple touch icons in root.

3. Create a new .htacess in your root folder (note that the old existing .htaccess has also moved to subdir). This new .htaccess will allow you to access everything as before but having the shop running in a subdirectory.

4. Put the following into your .htaccess (change "shop" to desired subdirectory and "getyourshop.ch" with your own domain.

# GetYourShop.ch
# Have perstashop in a subfolder but access it from your root base path
# make the changes to the file according to the instructions.

# Do not change this line - RewriteEngine on
RewriteEngine on

# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?testyourshop.ch$

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/shop/

# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /shop/$1

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?testyourshop.ch$
RewriteRule ^(/)?$ shop/index.php [L]

5. Take your iOS device and close the browser by swiping it to the top. Start browser and go into private mode. Visit your shop and add the link to your favorites. And you should be done.

Link to comment
Share on other sites

  • 1 year later...
Dnia 12.02.2018 o 5:10 PM, Scully napisał:

I finally found a solution which worked out:

1. Move everything that belongs to prestashop into a subfolder, for example /shop

2. Leave apple touch icons in root.

3. Create a new .htacess in your root folder (note that the old existing .htaccess has also moved to subdir). This new .htaccess will allow you to access everything as before but having the shop running in a subdirectory.

4. Put the following into your .htaccess (change "shop" to desired subdirectory and "getyourshop.ch" with your own domain.


# GetYourShop.ch
# Have perstashop in a subfolder but access it from your root base path
# make the changes to the file according to the instructions.

# Do not change this line - RewriteEngine on
RewriteEngine on

# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?testyourshop.ch$

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/shop/

# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /shop/$1

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?testyourshop.ch$
RewriteRule ^(/)?$ shop/index.php [L]

5. Take your iOS device and close the browser by swiping it to the top. Start browser and go into private mode. Visit your shop and add the link to your favorites. And you should be done.

Can you list the icons to be in the root directory, not in /shop ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...