/stupidteststructure/thesite_test directory...RewriteRule ^$ /stupidteststructure/thesite_test/content/ [R] RewriteRule ^content$ /stupidteststructure/thesite_test/content/ [R] RewriteRule ^content/$ /stupidteststructure/thesite_test/process.php?page_alias=index [L,QSA] RewriteRule ^content/(.*?)([/]*)$ /stupidteststructure/thesite_test/process.php?page_alias=$1 [L,QSA]It could probably be improved, but it works and everyone is happy.
RewriteRule ^$ content/ [RTTD,R] RewriteRule ^content$ content/ [RTTD,R] RewriteRule ^content/$ process.php?page_alias=index [RTTD,L,QSA] RewriteRule ^content/(.*?)([/]*)$ process.php?page_alias=$1 [RTTD,L,QSA]Help? I'm supposed to have gone home half an hour ago... :)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^test.example.com$
RewriteRule ^(.*) - [E=qPRE:stupidteststructure/thesite_test/]
# Replace these with your real rules ....
RewriteRule ^$ /%{ENV:qPRE}foo [R]
RewriteBase /thesite/" before the various relatively-defined rules. If they're both at the top level URL of their respective domains, then you'll want just "RewriteBase /".You are not logged in, either login or create an account to post comments
Look at the E= flag. If this isn't enough, and no-one else points you the answer, I'll have a poke at it later and try to generate a full receipe.
posted by devbrain at 9:38 AM on July 8