Skip to content
Archive of posts tagged uri

Extracting A Query String Parameter With Mod Rewrite

Background I was recently working on a website that was being modernized and we had to redirect the old site to the new site.  This shows the solution along with an explanation. This is targeted to those familiar with mod-rewrite. Extracting a single parameter This will check the URLs: http://oldsite.com/oldpage/oldfile.php?id=5 http://oldsite.com/oldpage/oldfile.php?ignored=123&id=5 and turn it into […]