I’m trying to parse hostname only from the Apache server variable HTTP_REFERER and I’m wondering if it’s possible with mod_rewrite since my goal is to obtain the hostname and then rewrite the request.
I’m trying to parse hostname only from the Apache server variable HTTP_REFERER and I’m
Share
I figured it out
With the back-reference from RewriteCond, I can append the query string to the new path/URL.