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/subfolder/hi that it will put “hi” 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]
then in the page it would have
[php]
<?=$item2;?>[/php]but I cant get it to work. help please!