.htaccess required
Posted: Fri Apr 20, 2007 10:27 pm
Would someone be able to provide me the following code for a .htaccess as follows:
I have a index.php which sits in a directory as follows.
I want to allow users the ability to access
However I need each of those accesses to go through index.php - if that makes any sense
(i'm tired - long day)
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
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