Hello,
I use rewrite rules to set up subdomains. Ive also set up 404 redirection to catch all traffic on currently `unused` subdomains ( ive also set it on in Customized Error Pages section ). Those are the rules which i use:
The problem is that it only works for a http://example.com . If there is no dir `/home/examplecom/public_html/sss` and i try to access sss.example.com i simply get
( The traffic isnt redirected )
Is this a rewrite bug? Why `Customized Error Pages` doesnt work for the all subdomains in this vHost? Is there any way i can fix that or this is a litespeed bug?
Best Regards
Lukasz
I use rewrite rules to set up subdomains. Ive also set up 404 redirection to catch all traffic on currently `unused` subdomains ( ive also set it on in Customized Error Pages section ). Those are the rules which i use:
RewriteCond %{SERVER_NAME} !^www\.example\.com$
RewriteCond %{SERVER_NAME} ^(www\.)?([a-z-]+)\.example\.com$
RewriteRule ^/(.*)$ /home/examplecom/public_html/%2/$1
ErrorDocument 404 /home/examplecom/public_html/index.html
RewriteCond %{SERVER_NAME} ^(www\.)?([a-z-]+)\.example\.com$
RewriteRule ^/(.*)$ /home/examplecom/public_html/%2/$1
ErrorDocument 404 /home/examplecom/public_html/index.html
404 Not Found
The resource requested could not be found on this server! Powered By LiteSpeed Web Server
Lite Speed Technologies is not responsible for administration and contents of this web site!
The resource requested could not be found on this server! Powered By LiteSpeed Web Server
Lite Speed Technologies is not responsible for administration and contents of this web site!
Is this a rewrite bug? Why `Customized Error Pages` doesnt work for the all subdomains in this vHost? Is there any way i can fix that or this is a litespeed bug?
Best Regards
Lukasz