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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/227327-basic-question/#findComment-1173150 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.