30-07-2003, 15:06
|
#1
|
Inactive
Join Date: Jun 2003
Location: Here
Posts: 2,019
|
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 ?
|
|
|
30-07-2003, 15:30
|
#2
|
Inactive
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
|
Quote:
Originally posted by TigaSefi
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 ?
|
Surely if you set your links to be relative it won't matter - i.e. your link should be /forums not www..../forums - so it should resolve
|
|
|
30-07-2003, 15:54
|
#3
|
Inactive
Join Date: Jun 2003
Location: Here
Posts: 2,019
|
yeah I hadn't thought of that.... so what would be the proper formatting ?
|
|
|
30-07-2003, 15:57
|
#4
|
Inactive
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
|
Quote:
Originally posted by TigaSefi
yeah I hadn't thought of that.... so what would be the proper formatting ?
|
well, if I understand your question correctly all you'd need to do is something like :
<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?
|
|
|
30-07-2003, 15:58
|
#5
|
Inactive
Join Date: Jun 2003
Location: Here
Posts: 2,019
|
hmmm I'll try that when I get home, thanks. Now I need a pro web designer that'll do it for nowt lol.....
|
|
|
30-07-2003, 16:00
|
#6
|
Inactive
Join Date: Jun 2003
Location: E14 9SD
Services: BroadBand 4M
Posts: 619
|
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
|
|
|
30-07-2003, 16:00
|
#7
|
Inactive
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
|
Quote:
Originally posted by TigaSefi
hmmm I'll try that when I get home, thanks. Now I need a pro web designer that'll do it for nowt lol.....
|
feel free to give me a shout/PM if you have any more questions, hopefully I should be able to answer them.
|
|
|
30-07-2003, 16:02
|
#8
|
Inactive
Join Date: Jun 2003
Location: Here
Posts: 2,019
|
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 ?
|
|
|
30-07-2003, 16:08
|
#9
|
Inactive
Join Date: Jun 2003
Location: E14 9SD
Services: BroadBand 4M
Posts: 619
|
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
|
|
|
30-07-2003, 19:14
|
#10
|
cf.member
Join Date: Jun 2003
Location: UK East Midlands
Services: Virgin Media STB; telephone and 10Mb broadband
Posts: 69
|
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
|
|
|
30-07-2003, 19:15
|
#11
|
Inactive
Join Date: Jun 2003
Location: Here
Posts: 2,019
|
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 ?
|
|
|
30-07-2003, 21:21
|
#12
|
(Invalid eMail, Account Suspended)
Join Date: Jun 2003
Location: Scotland
Posts: 17
|
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
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 20:10.
|