Live server says "Cannot get /index" if I remove .html and .php extension from the URL, I am able to do that with xampp but I want to use live server. Any alternate method?
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.*)$ $1.html [NC,L] ErrorDocument 404 /404.php </IfModule>
1.4m articles
1.4m replys
5 comments
56.9k users