rewrite URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

rewrite URL

Post by hongco »

Hi,

I've read few tutorial on mod rewrite for URL, but still have few questions about it.

Let's suppose i have this link:
http://www.mysite.net/index.php?option= ... &Itemid=45

and want to rewrite it to something link:

http://www.mysite.net/content/view/20/item/45

with the rewritten URL above, would I still be able to use this existing line on the script?

$itemid = intval($_GET['Itemid']);

Thankssss!
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Looking at your url, i asume you are using mambo ?

i believe mambo has that information for you. Either on there site or in one of there files
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

Post by hongco »

hello,

Thanks. yes, it is Mambo. I will look for the info. Thanks again.
Post Reply