I have a index.php which sits in a directory as follows.
Code: Select all
home/
index.php
dir1/
dir2/
step1/
step2/
step3/
step4/
resource/I want to allow users the ability to access
Code: Select all
dir1/dir2/step1/
dir1/dir2/step2/
dir1/dir2/step3/
...Here is the real kicker.
Ideally I would like each of those 'step' directories to be accessed with a cleaner URL so instead of
dir1/dir2/step1
I would prefer 'step1'
example:
http://www.domain.com/step1 maps to http://www.domain.com/dir1/dir2/step1/
I also need those rewrite rules to *ignore* accesses like:
http://www.domain.com/resource
But everything else is game and should redirect through index.php
I'm sure this is possible, but I have no idea how...
The last time I tried .htaccess I also observed that any GET parameters were not sent in, so I assumed I had to parse the REQUEST_URI manually...it would be nice if that wasn't the case and my GET parameters were just availble.
Can someone please show me how this is done as well as an explanation...I'd greatly appreciate it