PDA

View Full Version : SE Friendly URLS...This should work shouldn't it?



Mike
03-25-2004, 09:21 AM
Hi all,

I've been using search engine friendly urls for a while now, but bumped into a problem. The variables from the URL just don't seen to be displaying, I think it's a problem with my host, but then again, other sites on my account are working fine.

I have this in one of my files:


$var_array = explode("/",$PATH_INFO);

$var = $var_array[2];
echo $var;

Say www.example.com/cat/1/ was my url. "1" should be echoed, shouldn't it?

It's not happening for some reason. I've added the few lines of code needed in .htaccess as well.

Please could someone help?

Thanks very much,
Mike

Mike
03-25-2004, 09:28 AM
Actually ignore this, I remembered that I'd posted something else on this so did a search and found:

http://www.websitepublisher.net/forums/showthread.php?s=&threadid=411&highlight=friendly+urls

Sorry :)