What is url rewriting in php?
Published: July 5, 2009

Question:
What is url rewriting in php?

Answer:
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.

Example:
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:

www.yourwidgetstore.com/red-widgets.html

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.

Example:
RewriteEngine On

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:

www.yourwidgetstore.com/red-widgets.html

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.

Customer Reviews:

Published: January 25, 2019
"Rich responded to my chat inquiry and answered my phone call immediately and had the move completed by the time i got back from lunch. Hands down the best experience I've had with a service provider and I won't bother looking anywhere else when my c...[Read More]
Darrin Wenstrand
darrin@tpai.com

 

Published: September 23, 2018
The Computer Geek team got my website up and running again within just a few hours. I was dead in the water and on a time constraint. Not knowing where to turn, I luckily found this great team and they solved my problem! Thank you guys!...[Read More]
Robert Alvarado
rwalvo@gmail.com

 

Published: September 21, 2018
I had an issue with my website's php code (whatever that is) ??. I also needed to update my php without crashing it. I had no idea who to turn to and feared an expensive price. Somehow, I found the computer-geek. It was fixed and updated in no time w...[Read More]
Pat Studstill
pat.studstill@gmail.com

 

Published: September 1, 2018
Great service, received a response within minutes. Problem solved next day! Prices are reasonable. Very happy! Thank you Rich....[Read More]
Shady Azer
shadya@concordeworldwide.com

 

Published: August 7, 2018
The computer geeks are gifted editors who strives to add excellence into all the work they do. They have worked with me on a pitch project for my comic book and I re-hired them to work with me on a feature film, CRY. The film genre was found footage ...[Read More]
Octavius Ra
r@orapictures.com

 

Published: July 28, 2018
Rich, you're the best! You kept this about the project, not the $$$. Your price was extremely fair. My site was down-for-the-count; and you got it back up within one hour of my initial call. I hope I don't come off racist, but it was great to hear so...[Read More]
George Busateri
gbusateri@att.net

 

Published: July 21, 2018
We have an e-commerce website that was hijacked for ransomware and we had nowhere to go, I got a recommendation from an acquaintance to check out computer-geek and we are so glad we did. I contacted Rich on a Saturday and got a response within minute...[Read More]
Richard James
richard@theherbalcoast.com

 

Published: July 1, 2018
"Thank you for your awesome & fast service at an awesome price. I will definitely be using your services again in the future if needed. A++"...[Read More]
Eric Villeneuve
eric@podblog.ca

 

Published: January 24, 2018
Over the past 1 1/2 years I have been extremely pleased with your business operations. When I need something done on my website, the management team delivers promptly ALL THE TIME! Rich and Justin never miss a beat and the keep my "beat" pounding wh...[Read More]
William Velmer
naga1@ix.netcom.com

 

Published: January 17, 2018
Several years back I was informed by a client that they couldn't access my website. After countless days I was able to get a call back from my hosting and web page design company. The company got it back up but the content of the site was messed up. ...[Read More]
Captain Dave Edwards
Biggs87@yahoo.com

 

[Read More Testimonials Here]

Latest Website Related Articles

Why are my customers not receiving my emails?

Published: February 9, 2019
In the last few months, many businesses have experienced issues sending out company emails and newsletters to their customers. There have been many complaints of customers not receiving these emails, even though they may not have experienced th...[Read More]

 

How to Speed Up Your Wordpress Website?

Published: February 3, 2019
Slow-performing websites can be detrimental for businesses who want to maintain customer-satisfaction, as well as gain revenue through their site. While it may not seem like a huge deal, websites with slow loading times can seriously affect a w...[Read More]

 


Here are some links to related topics:
 troubleshoot website,   secure websites,   web site maintenance,   cloudhosted hacked,   joomla hacked,   ehost hacked,  


Site Secured By The Website Guardian
What is url rewriting in php? | Computer Geek 5 out of 5 based on 103 user ratings.
What is url rewriting in php? | Computer Geek
What is url rewriting in php? - Question: What is url rewriting in php? Answer: URL rewriting is a technique that allows you to use a URL that actuall . . .
What is url rewriting in php? | Computer Geek
Date Published: 10/09/2016
What is url rewriting in php? - Question: What is url rewriting in php? Answer: URL rewriting is a technique that allows you to use a URL that actuall . . .
5 / 5 stars