robert_gsfame Posted February 11, 2011 Share Posted February 11, 2011 I am new to apache, just want to know if i use mod_rewrite, how can i still access the page in localhost so for example: i have this- mypage.php?page=2 i rewrite url so that i will have this mypage/2 so when i add another page and try to redirect user to that page using a link, i have to put this way <a href="mypage/2">go to next page</a> instead of having this <a href="mypage.php?page2>go to next page</a> is that correct?? thx in advance Link to comment https://forums.phpfreaks.com/topic/227327-basic-question/ Share on other sites More sharing options...
trq Posted February 12, 2011 Share Posted February 12, 2011 Either will work but generally yes, you will use the url re-written version. Link to comment https://forums.phpfreaks.com/topic/227327-basic-question/#findComment-1173150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.