troubleshooting Question

Mod_rewrite from within a subdomain

Avatar of redcable
redcable asked on
Apache Web ServerWeb Servers
10 Comments1 Solution361 ViewsLast Modified:
I added a sub domain to our company website then edited the DNS to point to my home webserver. However I cannot get mod_rewrite to work correctly. I recieve 500 Internal Server Errors and my log says

"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."

I added RewriteLog and RewriteLogLevel 5 to my apach2.conf but it does not create a report when accessing pages that use mod_rewrite.

here is a copy of my .htaccess file

#### SEFU
Options +FollowSymLinks
RewriteEngine On

# ONLY rewrite URIs beginning with /
RewriteCond %{REQUEST_URI} ^/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]

#### SEFU

please help
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros