• Resolved marcbenfie

    (@marcbenfie)


    I want to redirect from “<domain>/” to “<domain>/mobile-landingpage” if the user is on mobile and it is not working.

    I tried alot of ways, like just a “/” in the url or “^\/$” as Regex and it just would not work. But its definetly just a “path-matching-issue”

    Other pages, where I seperated mobile with desktop, which hat a path worked without problems with the user-agent, so the user-agent ist not the problem

    • This topic was modified 4 years, 3 months ago by marcbenfie.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    The source for the root is ‘/’

    Thread Starter marcbenfie

    (@marcbenfie)

    You are actually right. It inconsitently does not work in my case though, which was the reason why I suspected the url match I wrote was wrong.
    I am not sure why and how, but it seems to have conflicts sometimes which caching / loading scripts from Divi.

    I just have put a redirection javascript into the head of the respective wordpress page, to capture the cases where it does not consistently work and redirect the user after loading the head to the mobile version.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redirect empty path’ is closed to new replies.