First case (dynamic links): I have a URL http://pqr.com/cms.php?PageId=MTE= and i want to convert this URL into http://pqr.com/hoiw-it-works. I have many links like i have mentioned earlier and i want to convert same way
Second case (static links): i have some static links like http://pqr.com/CustomerLogin.php so i want to convert this into http://pqr.com/login
Third case: i want to handle page not found case like following
- http://pqr.com/asasasa this is not in our website so it should redirect to either 404.php or index.php
- http://pqr.com/xyz.php if it is not found then it should redirect to either 404.php or index.php
can you provide me htaccess for this or is there any other way to rewrite url?