Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-06-2011, 04:05 PM   #1
LQ Newbie
Registered: Jun 2011
Posts: 4
Blog Entries: 1

Rep: Reputation: Disabled
Cannot get links to work from an internal web page within Firefox or IE

Hi All,
I just setup my first Linux box using, everything went along fine except now i have a problem that i cannot seem to solve. Ive set up a webpage on the box for my company's intra-net for testing purposes but i cannot get the links to work. On the server itself all the links work but Firefox still ask me to authenticate with the Adobe Flashplayer (player10), but when i access the page from another computer i have the following issues:-

1. Even though hostname -f shows the a fully qualified domain name i have to use the IP Address eg.

2. I can access the page but the links leading to the other pages do not work i get "Webpage cannot be found or the HTTP 404 Not Found" Error Message

3. None of the embedded pictures show up i get the red X.

Any help will be greatly appreciated.
Old 06-06-2011, 05:55 PM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
You have to put the correct entry into /etc/hosts to associate the web address with the ip address.
You have to do this on every LAN machine that accesses the server.

Alternatively, use relative links instead of absolute links.


instead of

But you still need /etc/hosts to use a non-valid domain name internally (inside the LAN).

Last edited by smoker; 06-06-2011 at 05:58 PM.
Old 06-07-2011, 09:47 AM   #3
LQ Newbie
Registered: Jun 2011
Posts: 4

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Smile Solved

Thank you Smoker,
I do have the ip address associated with the web address in the /etc/hosts see bellow (or at least i think i do) localhost.localdomain localhost ubuntutest

I changed the links to relative links and now everything is fine...again thank you for your help.

Last edited by wild2b1; 06-07-2011 at 11:43 AM. Reason: changes some stuff
Old 06-07-2011, 09:51 AM   #4
LQ Newbie
Registered: Jun 2011
Posts: 4

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
To follow up, i did change the /etc/hosts file on the other machines that access and that resolved the ip address/web address issue, but i still have the other one...just wanted to let you know that it did work


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
web page/links links/links vendtagain Linux - Newbie 2 09-19-2009 09:13 PM
Is There a Way in Perl To Locating The X,Y Coordinates of Links on a Web Page telecom_is_me Programming 6 06-12-2009 11:23 AM
redirecting https web page to http internal website baboow Linux - Server 2 12-17-2007 09:27 AM
web links do not open with firefox noranthon Mandriva 2 06-05-2006 02:05 AM
Mozilla web page links... LinuxLala Linux - Software 3 12-30-2003 05:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration