![]() |
Internet/Intranet
Right I got a mind bender here. Most ppl outside the router of my linux box would access my website using my domain name which is www.notreal.co.uk (NOT REAL ADDRESS) however my and my gf use loopback on my linux box and my LAN IP on her windows box. Now I am creating a website that gonna cause problem with the links. If i do a link to www.notreal.co.uk/forums and gf clicks it, it ain't gonna go there for her so how do I fix it so it goes there for everyone outside and inside ? Would an Intranet solve it ?
|
Quote:
|
yeah I hadn't thought of that.... so what would be the proper formatting ?
|
Quote:
<a href="forums.htm">forums<a> (or whatever your address is for your page) you'd also want to include the directory structure as well, if you had one i.e. : <a href="/forums/forums.html">forums</a> with all of your links being relative from your starting point/index page if that makes sense? |
hmmm I'll try that when I get home, thanks. Now I need a pro web designer that'll do it for nowt lol.....
|
You may run into problems like this....
The forum need to know its complete URL, so when people click on things like "New Post" it will be "http://www.notreal.com/forum/index.php?somecodefornewpost" I'd sugest editing the HOST file in your windows folder ;) something like 192.168.1.1 www.notreal.com |
Quote:
|
Yeah the forums works brillantly as it is now as u can see at www.nonbeanbaggers.co.uk/forums and it does work internally too. I ain't too sure how I did it though but surely just for the index.html the "formatting" as suggested will be fine ?
|
When at your forum, hover over any link (topic new post etc.) and look at the botom of your browser.... you will see the complete url all the way back to http://
If you edit the HOST file in the Windows folder (Windows\System32 in XP) you can tell your PC to use the local IP address. Your HOST file should already have one entry like: 127.0.0.1 Localhost Just add yours underneath. Asuming your local IP is 192.168.0.1 you would have: 127.0.0.1 Localhost 192.168.0.1 www.nonbeanbaggers.co.uk |
If you don't know much about the HOSTS file, you can find out how to make or edit one in Win 98 here (a link to the Other Place)
http://www.nthellworld.com/forum/sho...threadid=37741 |
I fixed the hosts file thanks. It works perfectly. I was just thinking how to do it on linux so i can use the domain address rather than the 127 loopback address ?
|
Not sure if you've already done it but exact same for linux machine only difference of course is the file, which is
/etc/hosts if it's the actual machine that's hosting the website just add www.mysite.com to what's already there, ending up something like that 127.0.0.1 www.mywebsite.com localhost.localdomain localhost |
| All times are GMT +1. The time now is 21:07. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum