_Dan
01-27-2007, 07:23 PM
Hi
This gives an "internal server error":
RewriteRule ^([A-Za-z0-9-]+)/(.+)$ /mydir/$2&FAKE_PHP_SELF=$1
Why? (it works without the &FAKE_PHP_SELF=$1)
I'm trying to change any random dir to "mydir" keeping the trailing GET variable string intact, also appending another get variable, FAKE_PHP_SELF which equals the original random dir.
E.g. rewriting /anything/index.php?stuff as /mydir/index.php?stuff&FAKE_PHP_SELF=anything
Also, another question...
RewriteRule ^([A-Za-z0-9-]+)/(.+)$ /mydir/$2
Works, redirecting /anything/index.php?stuff, however it fails to redirect /anything/?stuff, instead giving 404. Why?
Thanks.
This gives an "internal server error":
RewriteRule ^([A-Za-z0-9-]+)/(.+)$ /mydir/$2&FAKE_PHP_SELF=$1
Why? (it works without the &FAKE_PHP_SELF=$1)
I'm trying to change any random dir to "mydir" keeping the trailing GET variable string intact, also appending another get variable, FAKE_PHP_SELF which equals the original random dir.
E.g. rewriting /anything/index.php?stuff as /mydir/index.php?stuff&FAKE_PHP_SELF=anything
Also, another question...
RewriteRule ^([A-Za-z0-9-]+)/(.+)$ /mydir/$2
Works, redirecting /anything/index.php?stuff, however it fails to redirect /anything/?stuff, instead giving 404. Why?
Thanks.