Need Help with Redirect in Google Ads

aff-marketing

Newbie
Joined
Dec 11, 2023
Messages
7
Reaction score
5
Can anyone in this group guide me on how to redirect users from https://example.com to https://subdomain.example.com when they click on a Google Ads link? Any help would be greatly appreciated!
 
Put this on the .htaccess on example.com:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^https://www\.google\.(com|adservices\.com|adwords\.com) [NC]
RewriteRule ^(.*)$ https://subdomain.example.com/$1 [R=301,L]

If you don't have a .htaccess on the root directory of example.com, just create one and add that
 
Do not do redirects without cloaking mate. Use a good cloaker to be safe.
 
Thank you for your responses, bros!

I was curious about this because I’ve seen people displaying big brand websites (e.g., http://www.brand.com) in Google Ads, but when users click on the ad, they are redirected to a subdomain (e.g., subdomain.brand.com).

Since they don’t have access to the root files of the main domain, they can’t modify .htaccess or use cloaking.

How is this achieved? Any insights would be greatly appreciated!
 
Redirecting without cloaking puts your account at risk.
 
Back
Top