I have a Wordpress website with Domain: Hello.com
which is "ajaxified".
what I want to know is how to redirect user back to Hello.com
if they visit Hello.com/ask
, Hello.com/cake
or anything deeper using the browser address bar.
Even if they go 2 degrees deeper like Hello.com/cake/make
, I want them to stay at the root of my website.
I am using Wordpress and my first Idea was to put redirect script at header, but ended up making an infinite redirect loop.
How can I redirect users to homepage without redirecting my ajax requests to the homepage as well?
[If you ask why I would disallow them to go deeper, the answer is: I am using ajax to load deeper pages and everything else into a div]