Forum Moderators: phranque
What I'm tying to accomplish with mod_rewrite is this:
domain.com/folderOne/folderTwo TO domain.com/folderTwo/
with a variable of folderTwo, but would go into the /folderOne/folderTwo folder.
I have that partially working by doing this:
RewriteRule ^folderTwo/$ /folderOne/folderTwo/
But I know this can be done with one line of code to handle all variable folderTwo's without writting a line for each new folderTwo.
I'm guessing it would look something like this:
RewriteRule ^(.*)/$ /folderOne/$1/
Thus letting me domain.com/folderTwo's/ subtracting folderOne out of my url.