icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old February 15th, 2008, 12:24 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2004
7 posts
Gave thanks: 0
Thanked 0 times
Absolute links before DNS pointers set

I'm using one of my reseller accounts for website construction. The DNS pointers are still pointing to a different server so I'm accessing the account via the web through IP#/~accountName. The problem is absolute link references have to start with "/~accountName" in order for them to work which messes up proofing Dreamweaver files on my local machine and all the links will have to be changed once the DNS pointers are set. Does anybody have any ideas how to make absolute links work without prefacing it with the /~accountName?
crockej is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 15th, 2008, 12:43 PM   #2 (permalink)
Surpass Developer
On a golden path...
 
Mark's Avatar
 
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
466 posts
Gave thanks: 15
Thanked 75 times
You could try adding the BASE tag inside the HEAD tags of your document. Like this:

Code:
<base href="http://1.2.3.4/~username/" />
That will work in the browser without having to change tons of links. However I'm not sure how dreamweaver would work with it.
__________________
Mark
Surpass Hosting Developer
sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ
Mark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 15th, 2008, 1:34 PM   #3 (permalink)
Surpass Fan
Comfy Contributor
 
Rick's Avatar
 
Joined in Sep 2004
Hosted on Pass42
269 posts
Gave thanks: 4
Thanked 48 times
You can add you Domain Name and IP Address to you local host file. If you're using Windows, edit the "C:\WINDOWS\system32\drivers\etc\host" file and add your IP address and Domain name to it.

Now your computer will resolve your domain and you can use Dreamweaver or any other web software to develop your site.
__________________

Last edited by Rick; February 15th, 2008 at 1:39 PM. Reason: made a correction
Rick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 15th, 2008, 1:56 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2004
7 posts
Gave thanks: 0
Thanked 0 times
Base didn't work

The base URL didn't work (at least it broke a number of other links).

My solution (so far) was to change all the links on the html pages from absolute to relative. Then, use an include for navigation (which contains all of the absolute links). My local DW include eliminates the /~accountName in the links and I have a server version with the correct links. When the DNS is set, I only have to update the server include file.

Open to other ideas...
Thanks
crockej is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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