Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite on subdirectory help

Status
Not open for further replies.
Aug 23, 2004
174
US
I am trying to set up an htaccess file on my testing server to take my urls as:


and write them as:


Going to gets rewritten fine, But any subpages go to
Can anyone help me out?

Here is the code I am using.

Code:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME}  !-d
RewriteCond %{REQUEST_FILENAME}  !-f
RewriteRule ^([0-9a-zA-Z-]+)/?([0-9a-zA-Z-]+)?/?([0-9a-zA-Z-]+)?/?([0-9a-zA-Z-]+)?/?([0-9a-zA-Z-]+)?/?$ index.php?s1=$1&s2=$2&s3=$3&s4=$4&s5=$5 [QSA,L]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top