- Feb 18, 2008
- 1,106
- 455
Not sure if that title encapsulates what I am trying to say, but basically I have the script that can work if the page is on the root of the domain with htaccess, but not in a subfolder.
I just want an easy way to have it so if I type in a domain name such as: www.mysite.com/hi that it will put it in the page where I want.
The code I had was something like:
then in the page it would have
but I cant get it to work. help please!
I just want an easy way to have it so if I type in a domain name such as: www.mysite.com/hi that it will put it in the page where I want.
The code I had was something like:
PHP:
$item = $_GET['item'];
if (!$item) $item = "test";
$item2 = str_replace("-", " ", $item);
PHP:
<?=$item2;?>
but I cant get it to work. help please!