I'm setting up a local environment via MAMP of a site that I took down off the web a couple of months back in order to view some old functions on the site, and I am currently receiving the following error in my apache_error.log file.
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., referer: http://localhost:8888/
I have looked for solutions in other posts (e.g. Request exceeded the limit of 10 internal redirects due to probable configuration error), and I know it has to do with my .htaccess file. However, I have been unable to figure out what is wrong due to my file being rather specific. Here it is (I changed my website name to example.com for sake of privacy):
Options FollowSymlinks
RewriteEngine On
RewriteRule ^demo/ - [L]
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ example/public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ example/public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ example/public/index.php [NC,L]
This might be a longshot, but if anyone can take a look and offer an idea of what might be causing the error, I'd be forever grateful.