• Register
0 votes
148 views

Problem :

I am having trouble with my website. It has been slowed down a little in last couple of days. I have carefully looked into my error log & found a lots of following logs:

[Sat Nov 30 00:09:53 2019] [error] [client 66.249.66.205] 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.

[Sat Nov 30 00:09:53 2019] [debug] core.c(3120): [client 66.249.66.205] r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /home/mysitecom/domains/mysite99.com/public_html/index.php

[Sat Nov 30 00:09:53 2019] [debug] core.c(3126): [client 66.249.66.205] redirected from r->uri = /images/2019/02/600x376_0.076827001313237200_pixnaz_ir_1.jpg

How to solve this issue?

6 5 3
7,540 points

1 Answer

0 votes

Solution :

To avoid going into the infinite loop please add the extra RewriteCond line at the top of your rule as follows:

RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

RewriteCond %{ENV:REDIRECT_STATUS} ^$ helps in preventing infinite looping by checking an internal mod_rewrite variable as REDIRECT_STATUS which is by default set to 200 after the first successful internal redirect.

It will solve your issue.

9 7 4
38,600 points

Related questions

0 votes
1 answer 7 views
7 views
This issue appears in the server after i upgrading PHP and also i am obtaining the following error with PHP Version 5.6.2 on Apache 2.0. Why this is happening in my case and how to solve it.
asked Sep 14 Daniel Anderson 4k points
0 votes
1 answer 23 views
23 views
Problem : I have recently upgraded my PHP on Apache. Before upgrading everything was good. But after I upgraded my server PHP I am regularly facing the below error with my latest PHP Version 5.6.2 on Apache 2.0. A PHP Error was encountered Severity: Notice Message ... returned by reference Filename: core/Common.php Line Number: 257 What could have caused the above error? How can I fix this error?
asked Feb 14 mphil 2.3k points
0 votes
1 answer 22 views
22 views
Problem: I have only basic knowledge on PHP. I am currently facing a problem with PHP. I am facing this error: Object of class stdClass could not be converted to string. Above error occurs as soon as I try to run below portion of PHP code from my site: function ... : $data['user_data'] = $this->auth->get_userdata($this->uri->segment(3)); I am looking for correct guidance on my above PHP error.
asked Sep 1 Raphael Pacheco 4.9k points
1 vote
1 answer 121 views
121 views
Problem : I am beginner to CodeIgniter, If I try to execute my code then I face below error Object of class ci_db_mysqli_result could not be converted to string . Please find below my code for your reference. class MyReg extends CI_Controller{     function __construct(){ ... my above query in my model but I often face above error. I am looking for CodeIgniter experts help in fixing above error.
asked Apr 21 stewart 4k points
0 votes
1 answer 108 views
108 views
Problem : I am new to MySQL driver. I am trying to connect to the database server using MySQL driver but I always face the below error. A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 232 Please ... I am trying to fix above error from past couple of days but unable to find any solution on it. How can I fix it?
asked Feb 25 mphil 2.3k points