How do I write a rule that’ll take a user to /data/test.php when he accesses the site using http://www.domain.com (and nothing else after that (maybe a slash)). There are no other pages in my root folder, not even index.html. All other rules require something after the domain, but if I type only the domain I get the directory list. Any idea how its done. I did the one below, but it redirects everything (any request path) to the specified file.
RewriteRule ^/? /data/test.php
Then try RewriteRule ^/?$ /data/test.php