Quantcast
Channel: User Chamilyan - Stack Overflow
Viewing all articles
Browse latest Browse all 43

ReWrite condition for a direct hit on the root domain

$
0
0

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 all articles
Browse latest Browse all 43

Trending Articles



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