Quantcast
Viewing latest article 27
Browse Latest Browse All 43

ReWrite condition for a direct hit on the root domain

I'm looking for a .htaccess ReWrite condition that works on a direct hit on the root domain of a website. It should load the url if the user entered or copied the url in the address bar as opposed to navigating from a referrer.

It should fail in all these cases:

https://www.example.com/subdir

https://www.example.com?param

directed to https://www.example.com from another domain.

It should work only in this case:

User entered or copied https://www.example.com , www.example.com or example.com into the address bar.


Viewing latest article 27
Browse Latest Browse All 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>