HTACCESS – Pass variable from request_uri to destination url

I need to create an htaccess rule that pass variable, if exists, from request_uri to destination url.

So, if request url contains “test=something” it should adds it to the new url if it doesn’t already contains “test” var.

Thanks in advance.


Source: .htaccess

Leave a Reply