What is url rewriting in php?
URL rewriting is a technique that allows you to use a URL that actually goes to another URL within the same website. This is used mostly in dynamic database generated websites so the final URL is more Search Engine friendly.
You have an online store selling widgets. The page for the red widgets is: www.yourwidgetstore.com/products.php?productID=50
Using URL rewrites you could change this to:
Both of those links would go to the same place but the second one would have much more value to the search engines.
To do this you need to be using the .htaccess file.
RewriteRule red-widgets\.html www.yourwidgetstore.com/products.php?productID=50
To avoid any duplicate links within your site, you would then only link to:
About the Author
Rich Agnew is an author for The Computer Geek Custom Web Page Design. The Computer Geek is a web design company that prides itself in professional service at a fraction of the cost. The Computer Geek specializes in Custom Web Design, PHP & MySql and Ecommerce.
We engaged The Computer Geeks in mid-2023 as they have a reputation for API integration within the T . . . [MORE].
We all have been VERY pleased with Adrian's vigilance in monitoring the website and his quick and su . . . [MORE].
FIVE STARS + It's true, this is the place to go for your web site needs. In my case, Justin fixed my . . . [MORE].
We reached out to Rich and his team at Computer Geek in July 2021. We were in desperate need of help . . . [MORE].
Just to say thank you for all the hard work. I can't express enough how great it's been to send proj . . . [MORE].