On 27/09/2011 7:12 a.m., Iain william Wiseman wrote:
On 27/09/11 04:09, Carl Wiedemann wrote:
Assuming you are using Apache, you should instead use name-based virtual hosts http://httpd.apache.org/docs/2.2/vhosts/

That way you can have

http://demo.localhost
http://production.localhost

and the paths will be preserved.

Carl Wiedemann
Website design and development consulting
carl.wiedemann@gmail.com | skype: c4rlww



It might be I am not have misunderstood the link field type or your answer but would't I have to enter http://demo.localhost/sites/all/files/mylink.html and this would break when I export and import the database onto production. What I wanted was to enter an internal link with out the hosthame.

Hope this makes sense.
Iain


Solved it, not satisfactory but solved it.

If you create a text field you can put in

<a href="sites/default/files/myInternalLink.html">My Link</a>

It would be nicer if this could be entered in the Link Field. Or again I might have missed something about the link field.

Iain