Re: [jonoc73] Simple SEO rewrite using htaccess
Hi, you could put this a the top of your php file:
<?php
$location = "/conditions/".$_SERVER['QUERY_STRING'].".html";
header("Location:$location");
?>
What this will do is get the variable from the query string (detailpage-1 for example) and put a .html at the end of it. It will then redirect the page to your conditions folder and look for that page (conditions/detalpage-1.html).
This does have to be at the very top of the page though, or you may get an error.
Give it a try and let me know how it works.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/