I tried to set this RewriteCond in httpd 2.4.4:
...
RewriteCond expr "%{QUERY_STRING} =~ /welcome/"
RewriteRule ^(.*)$ %1\.html
So, if I visit https://localhost/?welcome
, for example, I should see the page https://localhost/welcome.html
.
Instead, it returns a 500 Internal Server Error. Why?
The error log reads:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.