Jump to content

Recommended Posts

Hi, firstly sorry my bad english ^_^ ...

 

Secondly, I would start saying that I'm a novice HelioHost.org user and so this might be something basic that I have done wrong :blink:. I'm having a problem getting my website to work when I'´m trying to use links...

 

e.g

 

=>If I creat an empty .html file with the single line:

[/font][/color]<a href="www.google.com" target="_new">link</a>

in it, i´ll have this page as result: http://my_user_id.heliohost.org/ssv/config/www.google.com

 

=>If I try to use the tag

<link href="/home/my_user_id/public_html/ssv/css/final_style.css" rel="stylesheet" type="text/css" />

the styles won't work nor if I use

<link href="http://my_user_id.heliohost.org/ssv/css/final_style.css" rel="stylesheet" type="text/css" />

...

 

=> Likewise the code

<script type="text/javascript" src="[url="http://code.jquery.com/jquery-1.10.2.min.js"]http://code.jquery.com/jquery-1.10.2.min.js[/url]" ></script>

doesn't work either...

 

What should I do to make the links work???

 

Like I said, it's a silly problem :P , but I can't figure out what I'm doing wrong :blink: ...

 

Thanks.. B)

Link to comment
Share on other sites

To link to external sites such as Google, you need the http:// prefix. Example

<a href="http://www.google.com/">Google</a>

 

The second code snippet you posted should work fine

<link href="http://my_user_id.heliohost.org/ssv/css/final_style.css" rel="stylesheet" type="text/css" />

The problem is in your CSS code . @charset should be all lowercase. Example

@charset "UTF-8";

 

To include scripts, you simply need

<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

Link to comment
Share on other sites

To access files under your own domain, you can drop the http://my_user_id.heliohost.org and simply use /ssv/dir_name as the link address. Example

<a href="/ssv/dir_name">Directory</a>

translates to

<a href="http://my_user_id.heliohost.org/ssv/dir_name">Directory</a>

 

/home/my_user_id/public_html and http://my_user_id.heliohost.org go to the same place. You can't use /home/my_user_id/public_html/ssv/dir_name in a client-side language (HTML, CSS, etc.). Only in server-side languages (PHP, python, etc.).

Link to comment
Share on other sites

Right, in case I wanna use PHP tags like include_once() or require_once() can I use the "/home/my_user_id/public_html/ssv/includes" to access those files???

 

And I'm facing another issue.. but this one has to do with sessions.. Should I start a new topic or just continue here???

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...