• Register
0 votes
172 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

Please log in or register to answer this question.

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 11 views
11 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, 2020 Daniel Anderson 4k points
0 votes
1 answer 35 views
35 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, 2020 mphil 2.3k points
0 votes
1 answer 57 views
57 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, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 278 views
278 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, 2020 stewart 4k points
0 votes
1 answer 131 views
131 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, 2020 mphil 2.3k points
0 votes
1 answer 342 views
342 views
Problem : I have upgraded to PHP 5.6 I am getting an error as follows whenever I am trying to connect to the server via fsockopen(). The certificate on the server or host is self signed. PHP Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages ... se/ca/cacert.pem The php.ini openssl.cafile = "/etc/ssl/certs/cacert.pem" But the script is still failing to work as expected.
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 1.8K views
1.8K views
Problem : I had to remove a +CompatEnvVars from following : SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire As it said it was an invalid command or something. So having removed that and following a instructions to a nail it get below error: ... maximum permissible length. (Error code: ssl_error_rx_record_too_long) I am very new to SSL, any advice on what is going wrong?
asked Jan 17, 2020 jwilliam 3.9k points
0 votes
2 answers 1.2K views
1.2K views
Problem : I am facing below listed very strange error. I am using Apache Server. “413. that’s an error. your client issued a request that was too large. that’s all we know.” How can I fix this error?
asked Feb 15, 2020 mphil 2.3k points
0 votes
1 answer 242 views
242 views
Problem: I am very new to php, mongodb and codeigniter. At this moment I am trying to connect the mongodb with the php codeigniter framework. I have already made changes in “php.in file extension=php_mongodb.dll.” I have also put that file in xampp/php/ext/ ... to MongoDB? Please Note: Currently I am using the php 7, xampp and mongo db is installed in my machine the 3.4 version.
asked Sep 3, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 17 views
17 views
Problem I am building an application using PHP 7.2. One of its features is ability to upload files, which are stored on the server but for some files I am getting: file size exceeded the maximum size permitted I get this error message for the files, which are larger than 2M. It ... ! I guess it is related to some php.ini black magic, but I am new in php, what should I do to resolve this issue?
asked Nov 12, 2020 alexh 2.2k points