I have an htaccess file in my main directory which redirects all top-level directories to a PHP file.
/Loch would go to
But I also have a subdirectory, lets call it
I need a rule in
test that says, "any sub paths of my directory are actually GET variables.
For example, linking to
Should actually go to
However, when I use the following rules within an htaccess file in the
/test/ directory, it doesn't work this way (I get a 500 error).
RewriteBase / RewriteEngine On RewriteRule ^(.*?)/(.*?)/?$ /receiver.php?dataset=$1&action=$2 RewriteRule ^(.*?)/?$ /receiver.php?dataset=$1
I hope I've provided enough info, please help! Thank you.