GetSimple Support Forum

Full Version: Link to folder (localhost server)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I am trying to put a link on my GetSimple Home page on my localhost server to a folder on my computer (path var/www/GetSimple/HOME) but I am getting a 404 error message:
>>Not Found
The requested URL /var/www/GetSimple/HOME/ was not found on this server.<<

This is my link html:
<p> <a href="/var/www/GetSimple/HOME/">Open HOME folder</a></p>

Why doesn't this link to HOME directory when I click 'Open HOME folder'?

I have missed the correct path link/reference somehow?! What is the correct html code reference?

I am very grateful for help to show how to get this link working & look forward to your reply, many thanks
should be
<p> <a href="/GetSimple/HOME/">Open HOME folder</a></p>
jimmivader Wrote:<p> <a href="/GetSimple/HOME/">Open HOME folder</a></p>

Hi jimmivader

That's it! FIXED.
Simples?!
Many thanks for your prompt & very helpful reply- best wishes
richardpd Wrote:<p> <a href="/GetSimple/HOME/">Open HOME folder</a></p>

Hi
I am now trying to link to folders outside of var/www & not succeeeding. I want a link to a folder in my Home Folder (/home/richard) /RPD_Programming.
I have tried many references all without success (e.g. this...<p><a href="/home/richard/RPD_Programming/">Open RPD_Programming folder</a></p>
gives
>>Not Found
The requested URL /home/richard/RPD_Programming/ was not found on this server.<<).

Can you please help me with this?-I look forward to your reply, thanks
Are You making a site only for You on localhost ?
In general You should not link to stuff outside of var/www/


GetSimple/RPD_Programming
You can make a symlink to Your home folder

in console mode
ln -s /home/richard/RPD_Programming /var/www/GetSimple/RPD_Programming


and than in cms

<a href="/GetSimple/RPD_Programming/">Open RPD_Programming folder</a></p>
jimmivader Wrote:<a href="/GetSimple/RPD_Programming/">Open RPD_Programming folder</a></p>

Hi
Thanks again for your help.
I wonderesd if it was a problem linking to folders outside var/www.
I haven't quite got this working right yet.
Hopefully there is a way for me to get this working somehow?!

Here is the terminal output:
>>>
richard@Chris-PC:/var/www/GetSimple/RPD_Programming$ ln -s /home/richard/RPD_Programming /var/www/GetSimple/RPD_Programming
ln: creating symbolic link `/var/www/GetSimple/RPD_Programming/RPD_Programming': File exists
richard@Chris-PC:/var/www/GetSimple/RPD_Programming$
<<<
On clicking the 'OpenRPD_Programming' link I get:
Index of /GetSimple/RPD_Programming
[ICO] Name Last modified Size Description
[DIR] Parent Directory -
but this should list all the other files/folders/directories found in richard/RPD_Programming & as you see it doesn't (nothing is listed).

I use localhost as a testbed for all kinds of website uses (design/creation/testing etc etc).
I am relatively new to Ubuntu (& not familiar with Linux! I have mainly used localhost server on another Vista computer. All this linux stuff is quite new to me as is GetSimple! It is good to learn new practices & to learn Ubuntu/Linux programming).

I'm very grateful for any more help and advice you can offer-thanks very much