Solve the problem of use ' limitinternalrecursion ' to increase the limit if necessary codeigniter. htaccess

Source: Internet
Author: User
Tags codeigniter

Configure the. htaccess as follows:

/Rewritecond $1!^ (index\.php|images|robots\.txt|css|  ^ (. *) $/sis/index.php/$1 [L]

Apache (Error.log) error is as follows:

12220: Tid1848] [Client::1:50815] Ah00124:request exceeded the limit ofTenInternal redirects due to probable configuration error. Use'limitinternalrecursion'To increase the limitifnecessary. Use'LogLevel Debug'To get a backtrace. [Thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3590): [Client::1:50815] Ah00121:r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/ index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/ index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/ index.php/sis/index.php/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/ index.php/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/ index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/ index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/sis/index.php/news/Create[thu SepTen  -: -:14.491172  -] [Core:debug] [PID12220: Tid1848] Core.c (3596): [Client::1:50815] ah00122:redirected from r->uri =/sis/index.php/news/create

Useful references for the collection: http://www.askapache.com/htaccess/modrewrite-tips-tricks.html

Loop stopping code ^sometimes your rewrites cause infinite loops, stop it with one of these rewrite Code snippets .  %{request_uri} ^/(stats/|missing\.html|failed_auth\.html|error/). *. *-%{env:redirect_ STATUS}. *-[L]

Modified. htaccess

/%{env:redirect_status}. *- [L]rewritecond $1!^ (index\.php|images|robots\.txt|css|  ^ (. *) $/sis/index.php/$1 [L]

Problem solving: Enter http://localhost/sis/news in the browser address bar (do not enter index.php), the page opens normally.

Solve the problem codeigniter. htaccess

for use ' limitinternalrecursion ' to increase the limit if necessary.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.