Ad Not Working When Redirecting Root Path With Apache Mod Rewrite

- 1 answer

I am trying to redirect my root path to But when I use this the root path for prerender redirects too.

So for example when I go to this it redirects directly to instead of

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} example\.com [NC]
RewriteCond %{REQUEST_URI} ^/$
Rewriterule ^(.*)$ [L,R=301]

Please help thank you.



That is expected and working correctly.

If a user goes to then they should get redirected to

So if a crawler goes to then they should also get redirected to

The crawler will update their index and they will eventually crawl If they find the meta fragment tag then they will crawl

So that's just all part of the process of the escaped fragment crawling scheme.