I already have extensionless urls working for .html files, however I found out the site used to also have .php and .aspx files. I was told elsewhere to use the following (first two lines) but it throws an internal server error. I just noticed I may need to edit the very last line (line 6). If so, can someone tell me how to write it?
thanks
RewriteCond %{THE_REQUEST} \.(html | php | aspx)
RewriteRule ^(.+)\.(html | php | aspx)$ http://example.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) /$1.html [L]