Please can you help me. I am trying to set up a domain that uses dynamic subdomains to show content instead of a folder eg.
The pages are created in php with the two fields and
example.com?index.php?field1=XXX&field2=YYY works fine
However using the following htaccess rule
RewriteRule ^(.*)$.example.com/.*)/index.html$ index.php?field1=$1&field2=$2 [NC]
shows a 404 error.
wild card subdomains have been enabled on the domain.