|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Changing url
Hi,
I have a link on index page of my site leading to mydomain.com/index2.html. I need to set it up in a manner that when some one clicks that link and goes to index2.html, the url in the browser only shows un mydomain.com If someone can advice. |
|
#2
|
|||
|
|||
|
The only free client side way to do that is with frames. You can mask is nicely where the user isn't really aware of it, but otherwise you're going to have to go crazy and buy some software to do this. The meta tag method doesn't really work.
Just out of curiosity, why do you want to do that? Sometimes people try to pass unencrypted passwords that way...I wouldn't recommend that. And on the frames side, just maximize the single frame and set all the paramaters you want...scrollbar, etc. |
|
#3
|
|||
|
|||
|
Quote:
May be question was not correctly framed. i want to achieve something like justhost.com On the main page in you see that when a country is changed their is a change in the images etc below. I thought its achieved using change of page wherein the url above remains same. Not sure though |
|
#4
|
||||
|
||||
|
Bah. A Jumpbox. Not keyboard user friendly.
![]() Anyway, they're using PHP (a popular server-side language) to dynamically pick which page elements to show based on which country is selected. If you gave us more details regarding your original question, perhaps we could suggest a solution.
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. Check out my blog. |
|
#5
|
||||
|
||||
|
I'm offering up two ideas:
1) Use Ajax to load the content of another document within the page. 2) Use Apache mod-rewrite to rewrite the URL.
__________________
* But to teach us, that for the similitude of the thoughts, and Passions of one man, to the thoughts, and Passions of another, whosoever looketh into himself, and considereth what he doth, when he does think, opine, reason, hope, feare, &c, and upon what grounds; he shall thereby read and know, what are the thoughts, and Passions of all other men, upon like occasions.
|
|
#6
|
|||
|
|||
|
sorry, twice posting.
please delete this post only. thanks. Last edited by hdewantara : Yesterday at 04:31 AM. Reason: twice posting |
|
#7
|
|||
|
|||
|
I guess javascript can not do that: document.URL is readonly, and window.location.href means page redirection.
The only way to do that is thru server's scripting (e.g: PHP). Or you might want to consider dynamic content (XMLHTTPRequest: Ajax, jQuery, etc). Hendra D. |
|
#8
|
||||
|
||||
|
Quote:
And what is the reason you don't want to use different urls for two different languages? There's no real benefit from what you are trying to do...
__________________
- Hugh of Borg The first thing young borg are taught: Keep away from Microsoft software! |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Changing url |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|