Issue
In apache, how can I redirect to homepage in case if you will go to exact string, but everything behind this string should be displayed normally, no redirect.
Example.
http://example.com/STRING -> go to homepage
http://example.com/STRING_PAGE -> go to http://example.com/STRING_PAGE
I tried
Redirect 301 /STRING http://example.com/
But in this case page is redirected to homepage too, for example in case of http://example.com/STRING_PAGE
.
Thanks.
.htaccess
?