vipervoid 0 Report post Posted September 25, 2007 Hi guys, can somebody help me with this problem. I want to make my URL static. something like this: http://www.example.com/ whenever click some buttons like add/edit/delete... the URL should stay as is... (http://www.example.com/). Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted September 25, 2007 What method are you using now?Check out mod_rewrite for Apache servers. Share this post Link to post Share on other sites
galexcd 0 Report post Posted September 25, 2007 I think he means having the url never change even if you click links etc...This can be achieved a few ways. The easiest way is just to use frames, but many people (like me) find frames very "old fashioned" and just plain annoying. If you are good with javascript you could load all of the content dynamically with AJAX and never even have to change pages. Share this post Link to post Share on other sites
ewcreators 0 Report post Posted September 28, 2007 I think he means having the url never change even if you click links etc...This can be achieved a few ways. The easiest way is just to use frames, but many people (like me) find frames very "old fashioned" and just plain annoying. If you are good with javascript you could load all of the content dynamically with AJAX and never even have to change pages. Just incase some people find javascript or AJAX quite difficult ( i know i did/am) , you can also achieve this through php.It may require $_GET if its ok with you, but everything will come on one page <?phpif ($_GET['tab'] =="home") {//put the content for the main home page}else if($_GET['tab'] == "join") {//put joining code here}//..etc//..etc?> Hope that helps a little bit. Share this post Link to post Share on other sites
galexcd 0 Report post Posted September 28, 2007 Yes but that would still change the url, even though its one page unless you post the data you will still have a ?tab=home at the end. I think he wants the url to always stay the same. In my opinion thats a terrible idea. Some people (including me) want to know what page they are one, and frames just make a website SUPER annoying. Share this post Link to post Share on other sites
reconraiders 0 Report post Posted September 28, 2007 I agree that this isn't a very smart thing to do. If you're looking for lots of traffic and quality visitors and all the things we want from our websites, including monetary gain... then you shouldn't do this. But if you don't care about any of that and you really want to do this (and I'm sure you have your reasons) then I would just go ahead and use frames. They may not be very appropriate in web design these days, but if you're going to be so "standards-non-compliant" with the url, then you might as well break a few more rules. Using frames would be pretty easy. Just make an index page with a frame and keep all the links' targets to that frame. Share this post Link to post Share on other sites