.htaccess redirect all extension except css and javascript
snippet in htaccess

.htaccess redirect all extension except css and javascript

user8660

RewriteRule ^(.*)\.(?!js|css)([^.]*)$ $1\.php