Hi Guys,
a few weeks ago we started to use a few lines in the .htaccess to start changing all the traffic, links etrc from http:// to https://
Now when we look back over the logs we are seeing this error:
[color=#808080][quote][error] [client 115.141.210.64] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: [/color][url=“https://www.domain.com.au/”][color=#808080]https://www.domain.com.au/[/color][/url][color=#808080][/quote][/color]
On another note, this error appears at the same time… so i wonder if this one has anything to do with it ?
[color=#808080][quote][font=Consolas, Monaco,][Thu Mar 19 10:04:57 2015] [error] [client 66.87.150.146] FastCGI: server “/dev/shm/motiondy-php.fcgi” stderr: Primary script unknown, referer: https://domain.com.au[/font][/quote][/color]
Our hosting provider has told us that the error is most likely in the .htaccess file but everything in that file is pretty much stock except for the 2 lines we added for the http->https redirect below
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L,NE]
I am posting the file below, if anyone can see where there might be a problem or point us in the right direction to fix this, your assistance would be appreciated!
<br />
DirectoryIndex index.html index.php<br />
<IfModule mod_headers.c><br />
Header append Vary: Accept-Encoding<br />
Header set X-Content-Type-Options "nosniff"<br />
<Files .htaccess><br />
order allow,deny<br />
deny from all<br />
</Files><br />
FileETag None<br />
<FilesMatch "\.(ttf|ttc|otf|eot|woff|css)$"><br />
Header set Access-Control-Allow-Origin "*"<br />
</FilesMatch><br />
<IfModule mod_expires.c><br />
Header unset ETag<br />
ExpiresActive on<br />
ExpiresDefault "access plus 1 month"<br />
#CSS<br />
ExpiresByType text/css "access plus 1 year"<br />
#Data interchange<br />
ExpiresByType application/json "access plus 0 seconds"<br />
ExpiresByType application/ld+json "access plus 0 seconds"<br />
ExpiresByType application/vnd.geo+json "access plus 0 seconds"<br />
ExpiresByType application/xml "access plus 0 seconds"<br />
ExpiresByType text/xml "access plus 0 seconds"<br />
#Favicon (cannot be renamed!) and cursor images<br />
ExpiresByType image/x-icon "access plus 1 year"<br />
#HTML components (HTCs)<br />
ExpiresByType text/x-component "access plus 1 month"<br />
#HTML<br />
ExpiresByType text/html "access plus 1 month"<br />
#JavaScript<br />
ExpiresByType application/javascript "access plus 1 year"<br />
#Manifest files<br />
ExpiresByType application/manifest+json "access plus 1 year"<br />
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"<br />
ExpiresByType text/cache-manifest "access plus 0 seconds"<br />
#Media<br />
ExpiresByType audio/ogg "access plus 1 month"<br />
ExpiresByType image/gif "access plus 1 month"<br />
ExpiresByType image/jpeg "access plus 1 month"<br />
ExpiresByType image/png "access plus 1 month"<br />
ExpiresByType video/mp4 "access plus 1 month"<br />
ExpiresByType video/ogg "access plus 1 month"<br />
ExpiresByType video/webm "access plus 1 month"<br />
#Web feeds<br />
ExpiresByType application/atom+xml "access plus 1 hour"<br />
ExpiresByType application/rss+xml "access plus 1 hour"<br />
#Web fonts<br />
ExpiresByType application/font-woff "access plus 1 month"<br />
ExpiresByType application/font-woff2 "access plus 1 month"<br />
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"<br />
ExpiresByType application/x-font-ttf "access plus 1 month"<br />
ExpiresByType font/opentype "access plus 1 month"<br />
ExpiresByType image/svg+xml "access plus 1 month"<br />
#CSS w/gzip<br />
<FilesMatch .*\.css.gz$><br />
ExpiresDefault "access plus 1 year"<br />
ForceType text/css<br />
Header set Content-Encoding: gzip<br />
Header set Cache-control: private<br />
</FilesMatch><br />
#JavaScript w/gzip<br />
<FilesMatch .*\.js.gz$><br />
ExpiresDefault "access plus 1 year"<br />
ForceType text/javascript<br />
Header set Content-Encoding: gzip<br />
Header set Cache-control: private<br />
</FilesMatch><br />
</IfModule><br />
</IfModule><br />
<IfModule mod_deflate.c><br />
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml<br />
</IfModule><br />
<IfModule mod_rewrite.c><br />
#Redirects go here<br />
RewriteEngine on<br />
Options -MultiViews<br />
AddEncoding gzip .gz<br />
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]<br />
RewriteCond %{REQUEST_FILENAME} \.(js|css)$<br />
RewriteCond %{HTTP:Accept-encoding} gzip<br />
RewriteCond %{REQUEST_FILENAME}.gz -f<br />
RewriteRule ^(.*)$ $1.gz [QSA,L]<br />
RewriteCond %{REQUEST_URI} ^api/(.*)$ [or]<br />
RewriteCond %{REQUEST_URI} .*/api/(.*)$<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule .*api/(.*)$ api.php?_d=$1&ajax_custom=1 [L,QSA]<br />
RewriteCond %{REQUEST_URI} \.(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff|yml|xml)$ [or]<br />
RewriteCond %{REQUEST_URI} store_closed.html$<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.*?)\/(.*)$ $2 [L]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . index.php [L,QSA]<br />
RewriteCond %{HTTPS} !=on<br />
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L,NE]<br />
</IfModule><br />