Support » Fixing WordPress » Text widget and https rewrite

  • Francesco


    I’m happy to have this block

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443
    RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L]

    in my .htaccess

    At first I believed it rewrites also the external links. Because if I’ve a link to (say) and I’ve this: <a href=""></a> in my html code, then I’ve when I load the page.

    Now imagine that does not have the SSL, consequently, the link results broken and I can’t reach

    I’ve this problem in a text wordpress widget, I double checked with a html file and the http remains http… so the problem it’s probably related to a wordpress setting.

    Maybe I’m wrong, but I think it depends on permalink settings:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Is there a way to resolve this issue?

  • The topic ‘Text widget and https rewrite’ is closed to new replies.