| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Comfy Contributor
Joined in Feb 2006
Lives in Ohio
Hosted on SH93
119 posts
Gave thanks: 4
Thanked 0 times
|
Relative URLs
I have a site that I can access just fine from home. At school, there is a filter set up that for some reason blocks my site. Now I usually dont have a problem with this, but if for some reason I need to access my site, I can go to servername.surpasshosting.com/~user, but this breaks all of my navigation images. Is there a way I can use relative paths and have it work on both the subfolder and the regular name?
TIA, Brennan
__________________
|
|
|
|
|
|
#3 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
|
For that to work, need to make sure all links are coded as
Code:
<a href="childdir/file.html"> Code:
<a href="/rootdir/file.html"> Code:
<a href="../file.html"> Code:
<a href="file.html"> Hopefully that made sense. That's what I do so my website works the same with www.markheadrick.com and www.markrh.com and my local test server.
__________________
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Comfy Contributor
Joined in Feb 2006
Lives in Ohio
Hosted on SH93
119 posts
Gave thanks: 4
Thanked 0 times
|
I am doing relative URLs. Go to http://sh93.surpasshosting.com/~brennan
They work on my main domain but not on this page. They are both IE7.
__________________
|
|
|
|
|
|
#6 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,222 posts
Gave thanks: 18
Thanked 86 times
|
Looking at the page source, I notice a number of hard coded items that point to your domain, such as where you are loading your brand.js javascript file from. Also, I notice several IMG src tags that are hard-coded to use your domain name.
But yeah, you need to look at everything... your CSS, Javascript, IMG tags or anything that references something.
__________________
|
|
|
|