RewriteEngine on RewriteCond %{REQUEST_URI} /[^\.]+[\+|-]?\.(php|html)$ RewriteRule ^(.*)$ /%1 [R=301,L]