How to get relative URLs instead of absolute URLs in hyperlinks

How to get relative URLs instead of absolute URLs in hyperlinks

Post by UGF1b » Thu, 04 Oct 2007 21:16:06


When I add a hyperlink in Expression Web I get an absolute link to
\\localserver\my webs\sitename\directory\page.html rather than the relative
link to directory/page.html that I want.
I'm working on sites that were created in FrontPage and are based on our
local network server before being published to hosting on the net. Obviously
the absolute URLs don't work on the net.
Is there a setting somewhere in xweb that will give relative rather than
absolute hyperlinks?
 
 
 

How to get relative URLs instead of absolute URLs in hyperlinks

Post by Christoph » Thu, 04 Oct 2007 22:22:13


This is a known issue with websites that are stored in network shares.
Sometimes it helps to assign a drive letter to that share and then use this
drive letter to access the website.

BTW, does "localserver" refer to your own machine? In this case, you can
(and probably should) use a local path such as "C:\My Websites\..." to access
your website.

--
< http://www.yqcomputer.com/ ; Transform text/html into application/xhtml+xml

 
 
 

How to get relative URLs instead of absolute URLs in hyperlinks

Post by Gregory A. » Fri, 05 Oct 2007 00:06:38

If you can get the web recognized as a web, you are fine. Workign with UNC
paths, however, you are not working with a web, at least not as Expression
understands it. This means you will have to manually edit each.

The preferred method of development, EW or Visual Studio, is to develop
locally and then deploy to the server rather than work through a share.

Note that there are ways of tricking windows to think a share is a local
drive, but I am not sure how EW handles that.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 
 
 

How to get relative URLs instead of absolute URLs in hyperlinks

Post by Christoph » Fri, 05 Oct 2007 04:38:53


This is not true. You can work with websites (rather than stand-alone
files) via UNC paths, xWeb just spoils all the hyperlinks you create.

--
< http://www.yqcomputer.com/ ; XML Schema Validator