Forum Moderators: phranque
[mywebsite.com...] to [texas.mywebsite.com...]
and show me all the articles related to the state of texas, its OK
the .htaccess code is:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.mywebsite.com
RewriteCond %{HTTP_HOST} ([^.]+)\.mywebsite.com
RewriteRule ^(.*)$ search.php?state=%1
So, everything is fine
but when I want navigate in these subdomain [texas.mywebsite.com...] (the article url is hhtp://www.mywebsite.com/article.php?title=cars%20in%20texas&id=5)
don’t show the article, show the same page [texas.mywebsite.com...] an the articles related whit texas.
as would show the article without leaving the subdomain
(http://www.texas.mywebsite.com/cars-in-texas-5.html)