Forum Moderators: phranque
Here's a variety of different rules I have tried (separately):
RewriteRule ^(.*) /home/root/public_html/index.php?x=$1 [L]
RewriteRule ^(.*) [root.com...] [L]
RewriteRule ^(.*) ../index.php?x=$1 [L]
Again, those were all in the subdomain's .htaccess file, not root.
I really don't know what to do, or if what I'm trying to do is even possible. The 2nd one actually works, but it does a 301 rather than a 302. The 1st and 3rd ones don't work at all, errors.
[edited by: Zerxer at 8:43 am (utc) on Dec. 17, 2007]
A 301 or 302 redirect would change the URL that the user sees.
You need a rewrite here. The rewrite takes the requested URL and then translates that into an internal filepath to fetch that content from.
Post this question in the Apache forum, and you'll get a rapid response.
Look through the thousands of examples already posted first, as I think many people would have already asked the same or similar question.