Jump to content

change url in browser`s address bar


djdealer

Recommended Posts

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

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.