|
|
#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?
|
|
|
|
|
|
#2 (permalink) |
|
Surpass Developer
On a golden path...
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/" />
__________________
Mark Surpass Hosting Developer sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Comfy Contributor
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 |
|
|
|
|
|
#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 |
|
|
|