How to remove .php, .html, .htm extensions with .htaccess

Removing Extensions To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file: If you want to remove the .html extension from a html file for example yoursite.com/wallpaper.html to yoursite.com/wallpaper you simply have to change the last line from the code above, to match the filename: That’s it! You can now link pages inside the … Read more

How to Force HTTP to HTTPS using .htaccess

How to Force HTTPS using .htaccess

Redirect all URL HTTP traffic to HTTPS, i.e. permanently redirect old URL to new URL. Follow these steps: Open .htaccess file find RewriteEngine On and copy-paste these codes Note: Make sure the line RewriteEngine On is not repeated twice.