To remove the .html extension from your urls, you can use the following code in root/htaccess :
RewriteEngine on RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC] RewriteRule ^ /%1 [NC,L,R] RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^ %{REQUEST_URI}.html [NC,L]
NOTE: If you want to remove any other extension, for example to remove the .php extension, just replace the html everywhere with php in the code above.
Below snippet shows how to redirect a site from non-www to www (or viceversa) and…
If you get 404 page not found error after installation. In this case your server…
Below snippet shows how to redirect a site from non-www to www [crayon-67bba4a141edd630323623/] or [crayon-67bba4a141ee2863457157/]…
Below shows common redirects using htaccess file. [crayon-67bba4a14215e711812695/] The CI .htaccess shouldn't be in the…