catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Domain Name Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 07-01-2009, 04:17 PM   #1 (permalink)
Registered User
 
djbayley's Avatar
 
Join Date: Aug 2004
Posts: 8
Temporary URL and linked files (CSS and images)

We have a new hosting package and the html pages are currently being uploaded. We currently have a problem as the site does not display correctly using the temporary URL.


DENTSPLY Middle East & Africa: Homepage

The site is coded with the html set with relative links back to the images and CSS. As such the browser looks for the CSS and image files at the top level (which would be correct with the domain assigned, i.e. www.domain.com/images ) however with a temporary domain it links back to cPanelŽ and finds nothing. Ideally the html would find the image files at the correct level i.e. Index of /~dentsply/images

I need to preview the site before re-pointing the domain to this new host (at Catalyst2). Is there anyway of getting the site to preview correctly, other than purchasing a real domain and pointing it to this site as an interim step?

I hope that makes sense. Any feedback would be appreciated.

Darren
djbayley is offline   Reply With Quote
Old 07-01-2009, 09:34 PM   #2 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,579
Darren,

Have you tried removing the leading / off the /css/?
paulredpath is offline   Reply With Quote
Old 07-01-2009, 10:51 PM   #3 (permalink)
Registered User
 
djbayley's Avatar
 
Join Date: Aug 2004
Posts: 8
Thumbs up

Quote:
Originally Posted by paulredpath View Post
Darren,

Have you tried removing the leading / off the /css/?
Paul, it worked, you are a genius. Thanks so much.

Darren
djbayley is offline   Reply With Quote
Old 08-01-2009, 07:22 AM   #4 (permalink)
Registered User
 
djbayley's Avatar
 
Join Date: Aug 2004
Posts: 8
One final question, if the leading / off of the /css/ is removed, when the domain is switched to point to Catalyst2's servers, it should still display correctly shouldn't it? With the images being picked up from the correct locations?
djbayley is offline   Reply With Quote
Old 08-01-2009, 10:46 AM   #5 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,579
Darren,

Glad it worked. When you swap to the domain it should all work the same, essentially with the leading / you are making the path to the file:

http://www.domain.com//folder/image.jpg

Even if the client just visits http://www.domain.com the server assumes there is a / at the end as they are already in the root folder.
paulredpath is offline   Reply With Quote
Old 08-01-2009, 11:05 AM   #6 (permalink)
Registered User
 
djbayley's Avatar
 
Join Date: Aug 2004
Posts: 8
Thumbs up

Many thanks

Excellent service as usual...!
djbayley is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:17 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.