[opencms-dev] Html editor: adding https://my.domain.com/ to embedded images
Mathias Lin
mail at mathiaslin.com
Sat Sep 29 02:26:10 CEST 2012
When I edit an OpenCmsHtml field, and include an image from a gallery, the
image is inserted as
src="/opencms/opencms/path/to/image.jpg"
However, when I save, OpenCms changes it to the absolute url of the server
src="https://www.domain.com/opencms/opencms/path/to/image.jpg"
(after saving and then looking into the html code of the Html widget).
OpenCms 8.0.4, site running under https.
I guess it's related to the domain/sites settings, or maybe the rewrite
rules, however, I don't see exactly why (the html converting the url to
absolute one with protocol and domain in front, or any relation between html
editor and rewrite rules).
This is my sites section:
<sites>
<workplace-server>https://www.domain.com</workplace-server>
<default-uri>/sites/com.domain.www/</default-uri>
<site server="http://www.domain.com"
uri="/sites/com.domain.www/">
<secure server="https://www.domain.com" exclusive="false"
error="false"/>
</site>
</sites>
vhost rules:
RewriteCond %{REQUEST_URI} ^(.*)/system/login$
RewriteRule ^(.*)$ https://www.domain.com/opencms/opencms/system/login
[R,L]
RewriteCond %{REQUEST_URI} ^(.*)/opencms/(.*)$
RewriteRule ^(.*)$ https://www.domain.com [R,L]
RewriteCond %{REQUEST_URI} ^(.*)/$
RewriteRule ^(.*)$ https://www.domain.com [R,L]
--
View this message in context: http://old.nabble.com/Html-editor%3A-adding-https%3A--my.domain.com--to-embedded-images-tp34493559p34493559.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list