physaux Posted November 20, 2009 Share Posted November 20, 2009 Hey guys, I have url rewriting, so that: website.com/first/second/third becomes website.com?id1=first&id2=second&id3=third So essentially all the pages come from just one page, index.html. My question is, say if I am writing the php for a page, which for the user would appear as: website.com/first/second How can I send them to website.com/first/apple ? Here are the possibilities I was thinking of: first/apple website.com/first/apple //(what I think) index.php?id1=first&id2=apple index.php/first/apple Which one is right? I just want to link the to a page. Any suggestions/ tips in relation to this? Am I doing it right? Link to comment https://forums.phpfreaks.com/topic/182238-solved-how-to-format-your-internal-links-when-you-have-apache-url-rewriting-on/ Share on other sites More sharing options...
emopoops Posted November 20, 2009 Share Posted November 20, 2009 change the variable? Link to comment https://forums.phpfreaks.com/topic/182238-solved-how-to-format-your-internal-links-when-you-have-apache-url-rewriting-on/#findComment-961635 Share on other sites More sharing options...
physaux Posted November 20, 2009 Author Share Posted November 20, 2009 but I want to create links, meh I guess I overthought it, I'll just use the full url with slashes, no local linking. Thanks! Link to comment https://forums.phpfreaks.com/topic/182238-solved-how-to-format-your-internal-links-when-you-have-apache-url-rewriting-on/#findComment-961640 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.