If you wish to remove :8080 without using VHM, absolute_url(1) will give you a relative url (i.e. webpages/index_html instead of http://localhost.com:8080/webpages/index_html). Just remember to add the leading slash to make the path absolute. This works, for example, in generating breadcrumbs and a site map automatically via python scripts. See page http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx (listed under module ObjectManagerItem) for usage. Since absolute_url(1) will not work for search results, you must use the getpath() method to return relative urls in ZCatalog search results. See page http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx (listed under module ZCatalog) for usage. - Kamal On Wednesday, February 19, 2003, at 02:49 AM, Einar Næss Jensen wrote:
We are running zope together with apache and via rewriterules we have gotten rid of the need to write ":8080" in the url,
now the problem is that links created with absolute_url() gives the link like this:
http://www.localhost.com:8080/webpages/index_html
what i want, is it to make this: (ie without the portnumber) http://www.localhost.com/webpages/index_html
I have a feeling i may accomplish this with virtual hostmonster, but do not know how. Any help and examples will be greately appreciated.
Einar -- Einar Næss Jensen Avdelingsingeniør EDB-HF 735 90750
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )