I have this
#RewriteCond %{HTTP_HOST} ^([^\.]+)\.localhost$ [NC]
#RewriteRule ^$ /s/index.php?s=%1 [L]
In this case, whenever i called test.localhost for e.g., it will get content from localhost/s/index.php?s=test
However, when i type http://www.localhost in the address bar, by right it should not get content from /s/index.php.
How do i write condition in htaccess.
for instance, if is www = do not get content from /s/index.php
You just need another
RewriteCondto excludewww.: