Answer the question
In order to leave comments, you need to log in
URL Rewrite. How to change url in address bar?
In general, I have a file with the path www.example.com/about.php, I want www.example.com/about to appear in the address bar when I go to this page. How to do it? I know that through .htaccess, help me write the rules. Thank you in advance.
Answer the question
In order to leave comments, you need to log in
RewriteEngine on
RewriteRule (.*) /$1.php [L]
RewriteEngine on
RewriteRule about /about.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question