LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-29-2008, 05:33 AM   #1
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 9.10
Posts: 86

Rep: Reputation: 15
How to create symbolic link to html file and avoid page link problem?


I have 'docs' folder which is normal programming document.
When I try to create sym link for it, so I can access the page with ease,
with the following command.

Code:
ln -s /data1/docs/index.html /home/haxpor/Desktop/API_DOC
It looks fine. But when I acces that sym link file, the page doesn't load up.

In the URL of the browser, it shows
'file:///home/haxpor/documentation.html', which is absolutely wrong.

So I look in the 'index.html' file and see that it will load up 'document.html' first with the following href-tag.

Code:
<h1><a href="./documentation.html">Documentation</a></h1>
As you know I loged in as haxpor.

Is it right to link to my home folder?
How can I solve this problem so I can browse for all links in 'docs' folder without problem?

Thanks in advance.
 
Old 01-29-2008, 06:52 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by haxpor View Post
So I look in the 'index.html' file and see that it will load up 'document.html' first with the following href-tag.

Code:
<h1><a href="./documentation.html">Documentation</a></h1>
If all your html documents are in the same directory, you can create a symbolic link to the directory. For example
Code:
# ln -s /data1/docs /home/haxpor/Desktop/API_DOC
Then you can open the "API_DOC" folder and click on "index.html".
 
Old 01-29-2008, 07:40 AM   #3
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 9.10
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks David1357,

But Is there anyway that I can link to it, load it up, and not even click on the file in file browser?
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create symbolic link to foxfire kiasta Ubuntu 4 01-01-2007 02:25 PM
create a symbolic link in Mozilla drevil666 Linux - Software 2 07-04-2005 01:48 PM
How do I create a symbolic link? Arenba Linux - Newbie 4 09-29-2003 10:40 AM
How to create a Symbolic Link? sikandar Linux - Software 6 09-09-2003 11:41 AM
how do I create a symbolic link? rdaves@earthlink.net Linux - Newbie 2 05-23-2001 01:28 PM


All times are GMT -5. The time now is 09:54 AM.

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