djdealer Posted June 3, 2009 Share Posted June 3, 2009 Hi! i have urls like: http://www.mysite.com/forum.php?x=103 http://www.mysite.com/news/new.php?nw=12 I need that all theese urls in browser`s address bar show like http://www.mysite.com/ but without using frames. I think that been done in .htaccess with following strings: RewriteEngine ON RewriteRule ??? If that is right, what i need to write after RewriteRule, to output only http://www.mysite.com/ in browser`s address bar? tnx =] Link to comment https://forums.phpfreaks.com/topic/160849-change-url-in-browsers-address-bar/ Share on other sites More sharing options...
MadTechie Posted June 8, 2009 Share Posted June 8, 2009 Simple option is use frames, other options is uses sessions, you basically control everything via a session instead of GET's, But if you are having problems with bandwidth or too many users this is of course one way to make people leave your site as it will stress out members as their bookmarks become pointless and their was no reason for it in the first place.. Oh and lets not forget the hell behind the code and management.. As you may of guessed i don't recommend this approach, may i ask why, do you want to do this! Link to comment https://forums.phpfreaks.com/topic/160849-change-url-in-browsers-address-bar/#findComment-851809 Share on other sites More sharing options...
djdealer Posted June 9, 2009 Author Share Posted June 9, 2009 i make online browser based game, and i wont, that other players dont see urls. Link to comment https://forums.phpfreaks.com/topic/160849-change-url-in-browsers-address-bar/#findComment-852166 Share on other sites More sharing options...
MadTechie Posted June 9, 2009 Share Posted June 9, 2009 Then you should be using sessions Link to comment https://forums.phpfreaks.com/topic/160849-change-url-in-browsers-address-bar/#findComment-852187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.