I need to redirect specific URLs to their new equivalent.
i have a single dynamic page(pages.php) and i fetch data from database.(like domain_name.com/pages.php?id=4)
and i want to redirect to
domain_name.com/pages/name
or
domain_name.com/name
on same page with different names(for example if pages.php id=4(example- domain_name.com/pages.php?id=4) and id 4 have name welcome then url goes
domain_name.com/welcome
or
domain_name.com/pages/welcome
or
if pages.php have id=5(domain_name.com/pages.php?id=5) and id 5 have name faqs then url goes domain_name.com/faqs or
domain_name.com/pages/faqs
will you plz help me