Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Help with excessive internal redirects error. |
|
Author |
|
pgnevets
Joined: 04 Nov 2013 Posts: 1 Location: USA, Atlanta
|
Posted: Mon 04 Nov '13 23:04 Post subject: Help with excessive internal redirects error. |
|
|
Hello,
It would be great if someone knew what was causing this:
I installed a url shortner script but the link that the script creates takes you to a server error page.
I viewed the logs and I get this error over and over again.
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.
this is what is in my htaccess file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
If anyone has an idea of how I can correct this, I would be much appreciated. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 05 Nov '13 12:54 Post subject: |
|
|
IMHO the last line should be
RewriteRule ^(.+)$ /index.php?url=$1 [QSA,L]
so it takes the index.php from the root directory and not trying to use an index.php from a subdirectory that might does not exist.
Also I would exclude the index.php and change the pattern
Code: |
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index.php(.*)$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
|
|
|
Back to top |
|
|
|
|
|
|