I created my website using PHP before so that all the page urls extensions are ended up with php extension like www.example.com/about-us.php
and I shared that urls in some other places.
But now I am creating that site in wordpress so all the urls are like www.example.com/about-us
Now how can I redirect www.example.com/about-us.php to www.example.com/about-us
You can place this rule just below RewriteBase line in WP’s .htaccess file to redirect
.php
links:You can also do like,goto admin panel and click on
permalinks
undersettings
.Then you notice options for Url settings.As per your need you need to selectPost name
and then your all URLs will like as your deserve(www.example.com/about-us)