English 中文(简体)
Forwarding from domain names without using frames
原标题:

I own a domain name e.g. www.mydomain.com

I also own a web server e.g. www.myserver.com

After navigating to my web server via www.myserver.com clicking on links to different pages within my servers file structure will result in a change in URL...

For example

Clicking on a link to main.html will result in www.myserver.com/main.html

However if I use framed forwarding from my domain name www.mydomain.com and perform the same action the url will not change since only the internal frame containing myserver s content will be changed...

this I know is a fundemental problem with using frames, however there must be some way of maintianing a full url with the domain name i.e.

www.mydomain.com/main.html

I have managed to achieve this with frames by making the links use

href="www.mydomain.com/main.html"

instead of

href="main.html"

But this seems to be a bit of a dirty method in my opinion. Any ideas?

This is probably a very stupid question.

问题回答

Why use "framed forwarding" It would seem what you are really wanting is the content / data from www.mywebserver.com to show up under www.mydomainname.com .

Simply add the domain to your webserver s configuration and let it serve the content. No frames necessary.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签