Url - how do you make your URL static?

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Url - how do you make your URL static?

vipervoid
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).


Reply

jlhaslip
What method are you using now?

Check out mod_rewrite for Apache servers.

Reply

galexcd
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.

Reply

ewcreators
QUOTE(alex7h3pr0gr4m3r @ Sep 25 2007, 11:34 AM) *
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 tongue.gif

CODE
<?php
if ($_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.

 

 

 


Reply

galexcd
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.

Reply

reconraiders
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.


*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for url, make, url, static,

*MORE FROM TRAP17.COM*
advertisement



Url - how do you make your URL static?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE