I am trying to find a rewrite condition or rule to let me create a custom variable rather than just using the standard REQUEST_URI.
Out of the following URL, I need anything after "www.mydomain.com/site/
" but before "?Site=www.mysite.com
" to be in a variable that I can use in a rewrite rule.
So my rewrite rule would looking something like this:
RewriteRule (.*) http://%
Is there any way to do this with Mod rewrite or something similar?
The Custom_variable would equal "home" for the URL above.