I'm trying to get some nice URLs. I want to use
https://sub.domain.edu/fs/7356
for
https://sub.domain.edu/fs/index.php?ind=7356
My .htaccess for this directory is:
RewriteEngine On
RewriteBase /fs/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?ind=$1 [L,QSA]
The page works fine in the browser. The PHP script works. It all looks great. But the ssl_access_log shows every page access as a 404.
"GET /fs/7356 HTTP/1.1" 404 9241
This would only be mildly annoying except logwatch flags all these 404s as possibly malicious probes. Every morning I get an email saying dozens of IPs tried to probe the site. I have tried adding R=301 to the RewriteRule but it does a full redirect to the full URL I am trying to avoid.