.htaccess - I want to make seo friendly url using .htacess, my webpages are in php, I want to make it .html extension -


this question has answer here:

i developing website in localhost using xampp. want make seo friendly url this.

currently access page this, http://example.com/myproject/page.php?id=10

i want change bellow, http://example.com/myproject/page.html?id=10

i tried using .htaccess, found redirecting .php, don't so. need permanent fix. when user type .html access .php files, no extension change on browser.

try this

rewriteengine on rewriterule ^(.*)\.html$ $1.php 

when access page1.html system for: page1.php


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -