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-67a5b737bcf0a601116017/] NOTE: If…

6 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…

6 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…

7 years ago

Redirect non-www to www in .htaccess

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

7 years ago

Common .htaccess file Redirects

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

7 years ago