I am having trouble trying to display dynamic content on one of my pages http://ashford.example.co.uk/drainage there are tags on this page that should display the subdomain (Ashford or the county of Ashford which is Kent depending on which I am calling), Ashford is the name of the subdomain pulled from my database.
It works on http://ashford.example.co.uk/ okay but when on http://ashford.example.co.uk/drainage no dynamic content is displayed
htaccess is :
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.example.co.uk
RewriteCond %{HTTP_HOST} ^([^.]+).example.co.uk
RewriteRule ^$ /index.php?name=%1 [L]
(Added [code]...[/code]
tags ~ MOD)