Jump to content

Endless redirect loops.


Netherlord

Recommended Posts

Posted

For some reason, pages on my site that dont exist any longer or just never did exist cause a redirect loop if you try to enter them. Does anyone know how to fix such an issue. I dont know where to begin.

Posted

Start by posting example link.
What is your htakes content?

Link here.

http://www.conspiracyoutpost.com 

htaccess is here

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) - [L,NC,R=404]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

 

Posted

Several disturbing things your site:

1. "The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 4 request(s) and 2.4KiB."

Find out in this test: https://gtmetrix.com/reports/www.conspiracyoutpost.com/EohMOzXL

2. Do errors in html5 code - see the validation

https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.conspiracyoutpost.com%2F

 

Posted

Several disturbing things your site:

1. "The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 4 request(s) and 2.4KiB."

Find out in this test: https://gtmetrix.com/reports/www.conspiracyoutpost.com/EohMOzXL

2. Do errors in html5 code - see the validation

https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.conspiracyoutpost.com%2F

 

Yeh im yet to go through and fix all the errors and other reports. Been working on new things lately. Its next on my to do list after i fix this redirect issue. Or is this whats causing it?

And i think those consitent URL's are for adsense ads. So i cant change what they serve.

Start by posting example link.
What is your htaccess content?

direct example link for loop.

http://www.conspiracyoutpost.com/wdwqd <-- domain with made up bit on end. causes a loop

Posted

and im not exactly sure what that is.

This is shown by WebPagetest : http://www.webpagetest.org/result/150914_4V_13NC/1/details/

For your problem with redirecting page nonexistent - I guess that is reason use "cloudflare-nginx" server.

Your request goes all cloudflare servers and then there is a message:

"The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

Probably a bug ips4 work "cloudflare-nginx''...

In Apache server has no such problem.

I do not know nginx - will not help you.

Posted

This is shown by WebPagetest : http://www.webpagetest.org/result/150914_4V_13NC/1/details/

For your problem with redirecting page nonexistent - I guess that is reason use "cloudflare-nginx" server.

Your request goes all cloudflare servers and then there is a message:

"The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

Probably a bug ips4 work "cloudflare-nginx''...

In Apache server has no such problem.

I do not know nginx - will not help you.

aww ok. So you believe it might be a bug with ips4 then.

Posted

contacted host they have no idea. So dont know whats next!

 Try this htaccess- should reflect the presence of WWW in your domain

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) - [L,NC,R=404]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

 

Posted
On 14/09/2015, Adlago said:

Try this htaccess- should reflect the presence of WWW in your domain


<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) - [L,NC,R=404]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

 

Still showing a loop bah!

Posted

Seems to have fixed itself. I had to redo all my custom pages today due to some issues. All went well but had to go and do the articles page again. so did away with the default one. The second it was deleted my loop issues ceased. Must have been a glitch. Strange.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...