Seravo / wp-https-domain-alias

This plugin allows your site to fall back to a secure HTTPS domain when a certificate is not available.
GNU General Public License v3.0
18 stars 10 forks source link

This plugin should also make all internal links root relative #18

Open ottok opened 10 years ago

ottok commented 10 years ago

When users edit posts or create other content while using a HTTPS Domain Alias protected admin area, the urls in default WordPress will have the format 'https://site.example.com/wp-content/uploads/image.png' et cetera.

This is a problem when visitors visit the non-https protected http://site.com/ and there are references to https://site.example.com/.

This could be avoided if in all places there possible, this plugin would automatically re-write all absolute urls to root relative urls (e.g. 'https://site.example.com/wp-content/uploads/image.png' would be '/wp-content/uploads/image.png')