Re: [Zope] Changing links base address

2007-04-13 Thread Martijn Pieters

On 4/13/07, Peppe Top [EMAIL PROTECTED] wrote:

thanks to your help I've successfully searched and
edited the content of the site (the guy who manged it
is unavailable at the moment). Now when I look at
the html I see there are a lot of absolute links like:

base ... www.site.net
script ... www.site.net
link ... www.site.net...css
href ... www.site.net

Because I have to change domain, I was
looking to replace those links, with

www.newsite.org

What's the best way to do that?


Those absolute links are computed at rendering time, based on the
hostname of the Zope server, or what the VHM sets the servername to.
So if you use Apache rewrite rules with the VirtualHostMonster, you
only have to change the rewrite rule and all absolute URLs will be
correct.

--
Martijn Pieters
___
Zope maillist  -  [EMAIL PROTECTED]
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 )


Re: [Zope] Changing links base address

2007-04-13 Thread Peppe Top

 Does this include the following?

 style type=text/css!-- @import
 url(http://www.site.net/.../ploneStyles.css); --/style

 (this is in the HEAD section)

Yes, that is included. If this is Plone, you really do not have to
worry about this at all, the above comment is generated too.


Thanks, I cleared all my confusion! ...for now ;-)

I was able to change the address using virtual host and rewrite (apache)
plus VHM, like you suggested. Thanks again for the help.

-- Peppe
___
Zope maillist  -  [EMAIL PROTECTED]
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 )


[Zope] Changing links base address

2007-04-12 Thread Peppe Top

Hi,

thanks to your help I've successfully searched and
edited the content of the site (the guy who manged it
is unavailable at the moment). Now when I look at
the html I see there are a lot of absolute links like:

base ... www.site.net
script ... www.site.net
link ... www.site.net...css
href ... www.site.net

Because I have to change domain, I was
looking to replace those links, with

www.newsite.org

What's the best way to do that?

Would it be a good idea using relative links?

I understand that my apache-zope configuration
utilizes VirtualHostMonster to translate addresses
so I guess absolute links could be there for good
reason, right?

This is apache+python2.3.5+zope2.8.7+plone2.1.2

Thanks for your time
-- Peppe
___
Zope maillist  -  [EMAIL PROTECTED]
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 )