.htaccess help with top-level directory acting as sub-domain
This is an open discussion with no replies, filed under Troubleshooting.
Search
Create an account or sign in to comment.
This is an open discussion with no replies, filed under Troubleshooting.
Create an account or sign in to comment.
Quick Links
Symphony • Open Source XSLT CMS
--with-xsl
)
My host’s servers are configured such that top-level directories can also be accessed as sub-domains. So http://example.com/foo will also work as http://foo.example.com/. That is, until Symphony’s .htaccess file is added to the mix.
I have a static page that I would like addressed at foo.example.com/. Direct requests for files (foo.example.com/index.html, foo.example.com/image.png, foo.example.com/style.css) work as expected, but requests for the root (foo.example.com/) are intercepted by Symphony and return my Symphony site’s index page.
It's easy to intercept requests for the subdomain and route those to the corresponding file in the directory:
But what I can't figure out is how to route requests for the root and route them to the index file. This does not work:
Any thoughts?