Snippets

How to remove .html, .php, etc (extension) from URL?

To remove the .html extension from your urls, you can use the following code in root/htaccess : [crayon-662efeb479a4a060491269/] NOTE: If…

5 years ago

Redirect non-www to www and HTTP to HTTPS using htaccess

Below snippet shows how to redirect a site from non-www to www (or viceversa) and from HTTP to HTTPS. To…

5 years ago

.htaccess file useful snippets

If you get 404 page not found error after installation. In this case your server needs the RewriteBase option to…

6 years ago

Redirect non-www to www in .htaccess

Below snippet shows how to redirect a site from non-www to www [crayon-662efeb47a382674628653/] or [crayon-662efeb47a38a570796612/] or Here's the correct solution…

6 years ago

Common .htaccess file Redirects

Below shows common redirects using htaccess file. [crayon-662efeb47a56a077883145/] The CI .htaccess shouldn't be in the application folder; it should be…

6 years ago