.htaccess - Subdomain redirect to URL Parameter while keeping other url params intact -


I have seen it as crazy to answer - and I am still unable to find anyone in the form of this. If I miss something then I apologize in advance.

I'm looking at converting a URL parameter to a URL parameter and maintaining other URL fragments.

As follows:

Redirecting to

Here I have tried several steps after looking at:

  # Complex rewrite% {HTTP_HOST} ^ sub.domain TV $ [nc] rear arrayAuthor ^ (. *) $ Http://domain.tv/$1/?campus=sub [R = 301, L]  < / Pre> 

which worked fine for sub redirects .domain.tv is at domain.tv?campus=sub, but the rest of the URL does not work with parameters (hence the title of sub.domain.tv/value Does nothing).

I have tried using% 1 and $ 1 as other example variables, such as with this post: but I can not understand the difference (and the examples which I see they are unable to work).

Take a look! :) I appreciate it!

Have you tried the [QSA] parameter, this campus = sub will add any remaining query parameters

Comments