I am looking at this rule from an old site one of our old developers did, and I have never saw it.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ [NC]
RewriteCond %{REQUEST_URI} ^/extension1/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/extension2/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/extension3/(.*)$
RewriteRule ^(.*)$ - [L,R=404]
I see that if I go to the domain with one of those extensions, it just 404's.
What I think is happening is if it matches the host, and one of the extenions, it just 404's. I understand everything up to the last line because the -
throws me off.
What does the -
do in the last rule?
Thanks