Wombat
10-31-2007, 09:49 AM
I'm in the process of redesigning the structure of my web pages. Now most of the different pages are hard coded and have URLs like http://domain.com/articles/interestingarticle.php, http://domain.com/articles/evenmoreinterestingarticle.php and so on.
With my new and improved system I use a database and the URLs appears like this: http://domain.com/articles/show?id=1
This means that all my pages will have new URLs, and I need to redirect the old pages to the new URLs. I realize that I can use a Java Script such as:
<meta http-equiv="Refresh" content="0; url="myurl.php">
<script>
window.location="myurl.php";
</script>
but that means I have to keep all the old pages on the server.
Anyway, my question is: is there a way I can set up a redirect more simple, and that allows me to remove the old pages from the server?
Thanks
With my new and improved system I use a database and the URLs appears like this: http://domain.com/articles/show?id=1
This means that all my pages will have new URLs, and I need to redirect the old pages to the new URLs. I realize that I can use a Java Script such as:
<meta http-equiv="Refresh" content="0; url="myurl.php">
<script>
window.location="myurl.php";
</script>
but that means I have to keep all the old pages on the server.
Anyway, my question is: is there a way I can set up a redirect more simple, and that allows me to remove the old pages from the server?
Thanks