My problem: I want to have a rewriteRule that allows me to forward parameter to another directory on my server. I called a subdomain of my page and this subdomain should points on the "normal" directory of my root page. Addional to that the rule should add a parameter to all url's that will be called.
Example:
Root-Page: http://www.example.com -> directory on the server /srv/www/vhosts/example.com/httpdocs/
Subdomain: http://fb.example.come
Now the Root-Page and the Subdomain should point to the same directory:
Subdomain -> directory on the server /srv/www/vhosts/example.com/httpdocs/
The difference between both domains is a paramenter that should add to every URL call:
User-Call: http://fb.example.com/index.php
--> add a fb=1 param
Intern -> http://fb.example.com/index.php?fb=1
User-Call: http://fb.example.com/show.php?param=1&test=1
--> add a fb=1 param
Intern -> http://fb.example.com/show.php?fb=1¶m=1&test=1
There should always be a param called "fb=1" in the URL.
How can i realize this?