You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to add a querystring to the response to add the original requested domain in the format so that I can track what domains people are hitting.
?utm_source=#{rack_env['SERVER_NAME']}
But can't quite work out how not to crash the server :) Can it be done & retain any original query string?
It's unlikely that anyone will hit any subpages under the main domain, but when I drop the $& from the rewrite, and replace it with my string, it blows up with no errors in the logs...
*nb: I asked this on SO a week ago with no replies, so I thought I'd post here.
The text was updated successfully, but these errors were encountered:
I've got a simple 301 redirect to capture all non .com domains I have registered for my site as follows:
I'd like to add a querystring to the response to add the original requested domain in the format so that I can track what domains people are hitting.
?utm_source=#{rack_env['SERVER_NAME']}
But can't quite work out how not to crash the server :) Can it be done & retain any original query string?
It's unlikely that anyone will hit any subpages under the main domain, but when I drop the $& from the rewrite, and replace it with my string, it blows up with no errors in the logs...
*nb: I asked this on SO a week ago with no replies, so I thought I'd post here.
The text was updated successfully, but these errors were encountered: