FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: indulge on May 01, 2006, 07:48:07 PM

Title: Basic Domain Questions
Post by: indulge on May 01, 2006, 07:48:07 PM
Hello. I recently bought a domain from LVCS.net and set it up so that it's linked to my account here on FreePgs.com, but I have a couple quick questions I was hoping someone could answer for me.

First, when I use my FTP client, am I still connecting to ftp.freepgs.com or is there a different server to which I connect? Also, when linking images or pages in my coding, is it still freepgs.com/indulge/page.html [or freepgs.com/indulge/picture.ext] or is it now indulgealunatic.org/page.html [or indulgealunatic.org/picture.ext]?

Sorry if these seem like incredibly basic questions, but this is the first time I've worked with a domain like this.

Thank you for your help. :)
Title: Re: Basic Domain Questions
Post by: Evilsprouts on May 02, 2006, 08:52:59 AM
You still connect to ftp.freepgs.com and it doesn't matter which you link to but it looks better if you link to yourdomain.org.
Title: Re: Basic Domain Questions
Post by: indulge on May 04, 2006, 07:49:25 PM
Great! Thank you so much, Evilsprouts. :)
Title: Re: Basic Domain Questions
Post by: pythonpoole on May 04, 2006, 09:18:23 PM
QuoteAlso, when linking images or pages in my coding, is it still freepgs.com/indulge/page.html [or freepgs.com/indulge/picture.ext] or is it now indulgealunatic.org/page.html [or indulgealunatic.org/picture.ext]?

From now on you should make it a habit to use relative path coding, its much better for various reasons.

That means, <img src="hey.gif"> will look for the image hey.gif in the same folder as the html page displaying it. This means it writes the url in for you, so if they visit your page with yourdomain.com, it will automatically look for the image at www.yourdomain.com, and if you put freepgs.com/yourname it will look there.

"cool/hey.gif" tells it to look for the picture hey.gif in a subdirectory of the folder the HTML page is in called cool.
"../hey.gif" tells it to look in "one level up" of folders. IE, if you are in the Sub directory cool, ../ will take you back to the home directory, as it is the next highest level.

So as you can see there are various uses for using relative paths. It means if you need to change the domain to your site, or anything like that, you don't have to make any physical changes of links on the page. It also means you can test your site at both yourdomain.com and freepgs.com/yourname, where as absolute path will simply make the links on both of them lead to the former, so you can't really test it on the freepgs link if you need to.
Title: Re: Basic Domain Questions
Post by: tle on May 05, 2006, 02:27:28 AM
I believe you can use the address ftp.yourdomain.com to log on to your ftp server.