domain.com is BLANK but www.domain.com OK – tried htaccess; canonical name prob?
-
My whole site was blank – now it’s okay if www is used, but it is still blank if www is not used.
(It’s a 500 internal server error, but it displays as blank.)
As a band-aid solution (not addressing the real problem), I added a rewrite/redirect to .htaccess.
This worked for imagiscape.ca/blog but not for imagiscape.ca/blog/ (with the trailing slash) or any subsections like imagiscape.ca/blog/caregiving – those addresses still get BLANKS.
BAND-AID SOLUTION:
– What can I enter into .htaccess to get imagiscape.ca/blog/ (with the trailing slash) to redirect to https://www.imagiscape.ca/blog/ (with the www and the slash)?
– By modifying .htaccess, am I compromising the canonical naming system?DEEPER SOLUTION:
– imagiscape.ca/blog displayed properly a few days ago, without any redirect. Why not now? Before I modified .htaccess just now, did something happen to my blog’s canonical naming system?Previously, I submitted:
Help, my blog is all blank (not covered in previous support).
(https://www.ads-software.com/support/topic/138729)My .htaccess file includes:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> # END WordPress RewriteCond %{HTTP_HOST} ^imagiscape.ca/blog$ [NC] [OR] RewriteCond %{HTTP_HOST} ^blog.imagiscape.ca$ RewriteRule ^(.*)$ https://www.imagiscape.ca/blog [R=301,L]
I tried several variations including:
RewriteEngine On RewriteCond %{HTTP_HOST} ^imagiscape.ca/blog$ [NC] [OR] RewriteCond %{HTTP_HOST} ^imagiscape.ca/blog/$ [NC] RewriteRule ^(.*)$ https://www.imagiscape.ca/blog/$1/ [R=301,L]
- The topic ‘domain.com is BLANK but www.domain.com OK – tried htaccess; canonical name prob?’ is closed to new replies.