Too many redirects WildCard

#1
Hey, I been using LiteSpeed with Cyberpanel.

Every time I try to connect to one of the wildcard subdomains (https://london.mysite.com), it gives me a Too Many Redirects error.


I use the following rewrite on my site,

RewriteEngine On
RewriteBase /

# start SEF links structure
RewriteRule ^new_listing$ new_listing.php [nc,qsa]
RewriteRule ^news/?$ modules/news/news.php?page=$1 [nc,qsa]
RewriteRule ^compare/?$ modules/listings_compare/compare.php
RewriteRule ^recent_ads recent_ads.php [nc,qsa]
RewriteRule ^featured_ads featured_ads.php [nc,qsa]
RewriteRule ^auctions auctions.php [nc,qsa]
RewriteRule ^register register.php [nc,qsa]
RewriteRule ^login login.php [nc,qsa]
RewriteRule ^logout logout.php [nc,qsa]
RewriteRule ^favorites favorites.php [nc,qsa]
RewriteRule ^contact$ contact.php [nc,qsa]
RewriteRule ^pre-submit pre-submit.php [nc,qsa]
RewriteRule ^refine refine.php [nc,qsa]
RewriteRule ^search/?$ listings.php [nc,qsa,L]
RewriteRule ^search/([^/]+) listings.php?category_slug=$1 [nc,qsa,L]
RewriteRule ^users/([^/]+) user_listings.php?user_slug=$1 [nc,qsa,L]
RewriteRule ^store/([^/]+) store.php?user_slug=$1 [nc,qsa,L]
RewriteRule ^contact-details/([^/]+) contact_details.php?user_slug=$1 [nc,qsa,L]
RewriteRule ^content/([^/]+) content.php?cp_slug=$1 [nc,qsa,L]
RewriteRule ^affiliate/([^./]+)$ index.php?aff=$1 [nc,qsa]
RewriteCond %{REQUEST_URI} !^/admin/.*$ [NC]
RewriteRule ^([^./]+)$ index.php?category_slug=$1 [nc,qsa]
RewriteCond %{REQUEST_URI} !^/include/.*$ [NC]
RewriteRule ^([^./]+)/([^./]+)/?$ details.php?category_slug=$1&listing_slug=$2 [nc,qsa]
# end SEF links structure

## Uncomment the following line when activating location subdomains
## Don't forget to replace yourdomainname.com with your own domain name !

RewriteCond %{HTTP_HOST} !www.mysite.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-_]+).mysite.com [NC]
RewriteRule (.*) %{SCRIPT_FILENAME}?crt_city=%2 [NC,QSA]


How can I fix this error?
 
Top