I am in the process of creating a static .html page using mod_rewrite (from
http://www.workingwith.me.uk/articles/scripting/mod_rewrite) , so that I can have, instead of:
http://www.thecrazywebsite.com/index.php?type=pictures&cat=Signs&id=280
this:
http://www.thecrazywebsite.com/BallsRemoved.html
Using mod_rewrite, I can get the following: index.php?page=BallsRemoved (based on the info in the URL).
I am assuming the only way of getting the correct page loaded up is to call the database, get the type, cat & id arguments and then somehow load the original page...
this however, is where I am stuck...how do i "include" in php-script a page containing arg's in the URL ?
I tried this (testing locally, using simple test file):
<?php
include "test1.php?var=hello";
?>
but it gives an error..."could not load file"...
Any help would be much appreciated!
Gerry
url-newbie 🙂