Jump to content

Recommended Posts

Posted

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)

Posted

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>

Posted

Thanks a lot....

 

A last question:

How can I use "/home/my_user_id/public_html/ssv/dir_name" to access files into this directory??

Posted

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.).

Posted

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???

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...