Pagerule weired problem

pagerules

#1

Hi

I got domainA DOT com and i want to redirect to domainB DOT com/landingpage2.php
Currently its redirecting to domainB DOT com/landingpage1.php BUT sometimes when i open domainA DOT com it just redirect me to one of my advertising urls wich is hosted on my landingpageA

DomainA DOT com Pagerule is FORWARD URL 301 permanent .domainA DOT com/
it redirects to domainB. DOT com /landingpage1/index.php

When i edit now the pagerule of domainA.com to redirect to domainB. DOT /landingpage2/index.php
it redirects me to a url wich i have in a script inside my landingpage2 !

Short said :

I want to redirect to domainA.com to domainB DOT com/landingpage2/index.php


#2

So you want any hit to anywhere at DomainA to go to that DomainB landing page?

I’d try a Match of DomainA.com/* with the 301 redirect to https://example.com/fullpath

Make sure this is the only Page Rule for Domain A.


#3

HI Sdayman,

I added the full path but i found out that cloudflare parses the root (domainA dot com) where i have a geoip redirect script.This causes the wrong redirection.

Instead of redirecting to fullpath cloudflare was reading the index.php (redirect script) of domainB dot com and sending user to the wrong path (to the predifined redirect in the index.php of domainB dot com)


#4

This topic was automatically closed after 14 days. New replies are no longer allowed.