Post by stef83136 » Tue Mar 31, 2020 2:46 pm

letxobnav wrote:
Tue Mar 31, 2020 2:23 pm
https://www.aquamagasin.com/catalog/vie ... ff?v=4.7.0
redirects to itself
https://www.aquamagasin.com/catalog/vie ... off?gzj9ot
redirects to itself
without the parameters they redirect right back to the link with parameter

Just put those links in your browser and you will see the results, use web developer with disabled cache to see the redirects pile up.

So I would check your htaccess and/or journal stuff to see if you are redirecting/rewriting any static asset links that are font related or parameter related.

Oh and don't think that cache + cache + cache = 3 x speed, it generally means 1.3 x speed, 3 x trouble and 9 x resolution time.
Our .htaccess

Code: Select all

<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
Header always set Strict-Transport-Security "max-age=31536000"
</IfModule>

Options +SymLinksIfOwnerMatch

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines:
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On

# Redirection vers HTTPS et WWW
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(.*)$  [NC]
RewriteRule (.*) https://www.%1/$1 [R=301,L]

RewriteBase /
RewriteRule ^robots.txt$ index.php?route=extension/feed/uksb_sitemaps/robots/ [L]
#RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/uksb_sitemaps&store=0/ [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) 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]

  # BEGIN Cache-Control Headers
<IfModule mod_headers.c>
 <FilesMatch "\.(ico|jpe?g|png|gif|swf|css|gz)$">
 Header set Cache-Control "max-age=2592000, public"
 </FilesMatch>
 <FilesMatch "\.(js)$">
 Header set Cache-Control "max-age=2592000, private"
 </FilesMatch>
<filesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, public"
</filesMatch>
# Disable caching for scripts and other dynamic files
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
</FilesMatch>
</IfModule>
# END Cache-Control Headers

### LITESPEED_CACHE_START - Do not remove this line
<IfModule LiteSpeed>
CacheLookup on
## Uncomment the following directives if you has a separate mobile view
#RewriteEngine On
#RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile]
</IfModule>
### LITESPEED_CACHE_END
Last edited by stef83136 on Tue Mar 31, 2020 8:40 pm, edited 1 time in total.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Wed Apr 01, 2020 3:02 am

After several tests and cache cleaning it appears that the following errors do not appear when we deactivate LSCACHE and they appear when we activate it.

However, this prevents the loading of icons on our site.

Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.woff2: 1
Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS icomoon.ttf: 1
Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS icomoon.woff: 1
Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.woff: 1
Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.ttf: 1

For the developers of JOURNAL 3 our templates, here is their answer: Hi,

Your issue has nothing to do with our theme, it seems there are some redirects setup on your server for static assets like fonts and that creates this issue, please consult with your hosting provider for more information about this.


We also see with our host, but would you have an idea, or just cause this problem when LS cache is activated?

Thanks for your help.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by victorj » Wed Apr 01, 2020 3:48 am

remove these rewrites form .htaccess and try again

Code: Select all

# Redirection vers HTTPS et WWW
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(.*)$  [NC]
RewriteRule (.*) https://www.%1/$1 [R=301,L]

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


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by stef83136 » Wed Apr 01, 2020 4:24 am

Good evening.

I found the solution. I had to replace my htaccess us by that of the old version of the site which is tagged with Cpanel / comodo.

How is it that cpanel didn't tag the new one?

Everything works now.

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} !on RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# 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 ^robots.txt$ index.php?route=extension/feed/uksb_sitemaps/robots/ [L] RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^sitemap.xml$ index.php?route=extension/feed/uksb_sitemaps&store=0/ [L] #RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^system/storage/(.*) 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)
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

RewriteCond %{HTTP_HOST} ^aquamagasin\.com$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^/?$ "https\:\/\/www\.aquamagasin\.com\/" [R=301,L]

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by victorj » Wed Apr 01, 2020 4:27 am

it only checks the .htaccess when a certificate needs to be renewed.
if working on htaccess just renew your certificate and htaccess wil be altered again.

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


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by stef83136 » Wed Apr 01, 2020 4:37 am

victorj wrote:
Wed Apr 01, 2020 4:27 am
it only checks the .htaccess when a certificate needs to be renewed.
if working on htaccess just renew your certificate and htaccess wil be altered again.
In the meantime my host asked me to try with it and it works too.

Code: Select all

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !on
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Last edited by straightlight on Wed Apr 01, 2020 7:54 pm, edited 1 time in total.
Reason: Added code tags.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by victorj » Wed Apr 01, 2020 4:45 am

looks good, although looks like its not speeding up pageloading time.
ion fact its loading al bit slower now.

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


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by stef83136 » Wed Apr 01, 2020 7:49 pm

victorj wrote:
Wed Apr 01, 2020 4:45 am
looks good, although looks like its not speeding up pageloading time.
ion fact its loading al bit slower now.
It improves the First Byte Time and therefore the visitor experience.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Sat Apr 04, 2020 8:13 pm

In the end it doesn't work better. the problem still exists. it's incomprehensible. The same mistakes:

Code: Select all

icomoon.ttf: 1 Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS
fontawesome-webfont.woff2: 1 Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS
icomoon.woff: 1 Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS
fontawesome-webfont.woff: 1 Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS
fontawesome-webfont.ttf: 1 Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS
While the live site without going through the cache everything works beautifully. No errors or redirection issues.
Last edited by straightlight on Sat Apr 04, 2020 8:39 pm, edited 1 time in total.
Reason: Please add the code tags!

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Sun Apr 05, 2020 7:57 pm

It's really a crazy story.

To summarize :

With Template JOURNAL 3:

Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.woff2: 1
Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.woff: 1
Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.ttf: 1

Example of the offending url: /catalog/view/theme/journal3/icons/fonts/icomoon.woff?gzj9ot

With the native Template:

Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.woff: 1
Failed to load resource: net :: ERR_TOO_MANY_REDIRECTS fontawesome-webfont.ttf: 1

Example of the offending url:
/catalog/view/javascript/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0

We only get these errors when we activate Litespeed cache on our server with Cpanel.

No errors to report when we deactivate Litespeed cache

Our .htaccess :

Code: Select all

<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
Header always set Strict-Transport-Security "max-age=31536000"
</IfModule>

Options +SymLinksIfOwnerMatch

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines:
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On

# force https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-SSL} =off

# force www
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS}s on(s)|offs()
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [NE,L,R]

# 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 ^robots.txt$ index.php?route=extension/feed/uksb_sitemaps/robots/ [L]
# RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/uksb_sitemaps&store=0/ [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) 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]
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]

<IfModule mod_expires.c>
  ExpiresActive On

  # Images
  ExpiresByType image/jpeg "access plus 1 year"
  ExpiresByType image/gif "access plus 1 year"
  ExpiresByType image/png "access plus 1 year"
  ExpiresByType image/webp "access plus 1 year"
  ExpiresByType image/svg+xml "access plus 1 year"
  ExpiresByType image/x-icon "access plus 1 year"
  
  # Video
  ExpiresByType video/mp4 "access plus 1 year"
  ExpiresByType video/mpeg "access plus 1 year"

  # CSS, JavaScript
  ExpiresByType text/css "access plus 1 month"
  ExpiresByType text/javascript "access plus 1 month"
  ExpiresByType application/javascript "access plus 1 month"

  # Others
  ExpiresByType application/pdf "access plus 1 month"
  ExpiresByType application/x-shockwave-flash "access plus 1 month"
</IfModule>


### LITESPEED_CACHE_START - Do not remove this line
<IfModule LiteSpeed>
CacheLookup on
## Uncomment the following directives if you has a separate mobile view
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile]
</IfModule>
### LITESPEED_CACHE_END
We tried by commenting on several rules in the htaccess, we also tried with Header set Access-Control-Allow-Origin, no better ...

We cannot understand why we have these TOO_MANY_REDIRECTS only on web fonts and that on the 2 templates. Does it come from htaccess? A problem on Opencart?

I hesitate between a rope or a revolver ... Thanks for your help. Ohhhh help :-)

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by victorj » Sun Apr 05, 2020 8:05 pm

Regenerate your certificaten.
Cpanel will chance your htaccess and include ssl rewrites.

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


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by letxobnav » Sun Apr 05, 2020 8:28 pm

what is all this?

Code: Select all

# SEO URL Settings
RewriteEngine On

# force https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-SSL} =off

# force www
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS}s on(s)|offs()
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [NE,L,R]

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by stef83136 » Sun Apr 05, 2020 11:43 pm

letxobnav wrote:
Sun Apr 05, 2020 8:28 pm
what is all this?

Code: Select all

# SEO URL Settings
RewriteEngine On

# force https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-SSL} =off

# force www
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS}s on(s)|offs()
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [NE,L,R]

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
Forcing not www to www and http to https but I also tried this and same problem:
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*) https://www.aquamagasin.com%{REQUEST_URI} [R=301,L,NE]

there is something strange, all caches disabled (JOURNAL3) Litespeedcache enabled on the server (Same with the .htaccess disabled)

Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... tf?v=4.7.0
https://www.aquamagasin.com/catalog/vie ... tf?v=4.7.0
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... f2?v=4.7.0
https://www.aquamagasin.com/catalog/vie ... f2?v=4.7.0
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... ff?v=4.7.0
https://www.aquamagasin.com/catalog/vie ... ff?v=4.7.0
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... ttf?gzj9ot
https://www.aquamagasin.com/catalog/vie ... ttf?gzj9ot
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... off?gzj9ot
https://www.aquamagasin.com/catalog/vie ... off?gzj9ot

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Sun Apr 05, 2020 11:47 pm

For redirect loops, can it be caused by a bad detection of SSL? in the Opencart 3 code?

Is it the same internal loop?
  If the site does not take into account X-Forwarded-Proto or X-Forwarded-Port, it can think that it is in HTTP?

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Sun Apr 05, 2020 11:52 pm

This is the http to https rules recommended by my host

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !on
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Mon Apr 06, 2020 1:10 am

I was still doing redirect tests with LScache.

Here are my rules:

Code: Select all

## Force HTTPS
RewriteCond% {HTTPS}! = On
RewriteRule. * Https: //% {HTTP_HOST}% {REQUEST_URI} [R = 301, L]

## force www
RewriteCond% {HTTP_HOST}! ^ Www \.
RewriteRule ^ (. *) $ Https: //www.% {HTTP_HOST} / $ 1 [R = 301, L]
With LScache deactivated: All redirection in 301

https://www.aquamagasin.com = Direct access (200) https://www.aquamagasin.com
https://aquamagasin.com = Permanent redirect (301) https://www.aquamagasin.com
http://www.aquamagasin.com = Permanent redirect (301) https://www.aquamagasin.com
http://aquamagasin.com = Permanent redirection (301) to https://aquamagasin.com/ + Permanent redirection (301) to https://www.aquamagasin.com/

If I switch with LScache activated:

https://www.aquamagasin.com = Direct access (200) https://www.aquamagasin.com
https://aquamagasin.com = Direct access (200) https://aquamagasin.com/
http://www.aquamagasin.com = Permanent redirect (301) https://www.aquamagasin.com
http://aquamagasin.com = Permanent redirect (301) https://aquamagasin.com/

Is it normal that the results are different?
Last edited by straightlight on Tue Apr 07, 2020 1:39 am, edited 1 time in total.
Reason: Added code tags.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Tue Apr 07, 2020 1:23 am

victorj wrote:
Sun Apr 05, 2020 8:05 pm
Regenerate your certificaten.
Cpanel will chance your htaccess and include ssl rewrites.
It hasn't changed anything. As soon as we activate LScache these redirect loops (GTmetrix) appear. As soon as we deactivate LScache we have no loop the site works fine.

Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... tf?v=4.7.0
https://www.aquamagasin.com/catalog/vie ... tf?v=4.7.0
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... f2?v=4.7.0
https://www.aquamagasin.com/catalog/vie ... f2?v=4.7.0
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... ff?v=4.7.0
https://www.aquamagasin.com/catalog/vie ... ff?v=4.7.0
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... ttf?gzj9ot
https://www.aquamagasin.com/catalog/vie ... ttf?gzj9ot
Remove the following redirect chain if possible:

https://www.aquamagasin.com/catalog/vie ... off?gzj9ot
https://www.aquamagasin.com/catalog/vie ... off?gzj9ot

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by letxobnav » Tue Apr 07, 2020 11:23 am

I do not know how LScache works but I would suggest to remove those parameters ?v=4.7.0 and ?gzj9ot from those links first.
Those static asset links seems to be the only ones giving this issue.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by stef83136 » Tue Apr 07, 2020 1:59 pm

letxobnav wrote:
Tue Apr 07, 2020 11:23 am
I do not know how LScache works but I would suggest to remove those parameters ?v=4.7.0 and ?gzj9ot from those links first.
Those static asset links seems to be the only ones giving this issue.
Hi letxobnav and thank you for your answer. However, in the Opencart and Journal3 files the links do not have these parameters, it is GTmetrix which gives this in its results.

Here's what I have in my folders and files:

Image
Image

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Wed Apr 08, 2020 7:54 pm

Opencart for security reasons, migrates its caches to the root of the / Home / mest8941 / storage server.

But storage, when installing the Opencart script and first created in / public_html / system / storage.
At the end of the installation, Opencart asks us to move storage to the root of the server, which is done either manually or automatically by Opencart. The first folder / public_html / system / storage must remain in place but the content cache is not emptied, which creates this conflict with / Home / mest8941 / storage

In short it works perfectly now and the icons are displayed correctly and for all this time that I made you lose another thousand excuses.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France
Who is online

Users browsing this forum: No registered users and 1 guest