• I don’t know why Google is indexing my wordpress website with https even I have not installed any SSL certificate, it causes matched content etc. So, I have tried to redirect whole domain to https by installing some plugins and some changes made in .htaccess file with these different codes

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
    OR
    RewriteCond %{HTTPS} !on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    

    but my site has stopped loading internal pages(articles/posts) was showing 404 except homepage but the homepage is working fine.
    if I change the Permalink to Plain i.e. https://examplesite.com/?p=123 then every post is working but not with Custom Permalink that is
    https://examplesite.com/%postname%.html
    I Had installed Easy HTTPS (SSL) Redirection Plugin for WordPress and .htaccess File was

    # BEGIN HTTPS Redirection Plugin
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    # END HTTPS Redirection Plugin
    
    <IfModule mod_rewrite.c>
    <IfModule mod_php5.c>
    php_value upload_max_filesize 30M
    php_value post_max_size 30M
    </IfModule>
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    <FilesMatch "\.(htm|rtf|rtx|svg|txt|xsd|xsl|xml|HTM|RTF|RTX|SVG|TXT|XSD|XSL|XML)$">
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    </FilesMatch>
    <FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|WEBP|JSON|MDB|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$">
    <IfModule mod_headers.c>
    Header unset Last-Modified
    </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache

    I have again changed its settings to old one due to 404 error on every post.
    Please help me How to Fix this permalink or any other issue related to my site.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t know why Google is indexing my wordpress website with https even I have not installed any SSL certificate, it causes matched content etc.

    You certainly have SSL installed. If you didn’t install it yourself, most likely your host did. These days most host automatically permission free SSL for all sites, as all the popular hosting control panels have it built in.

    it causes matched content etc.

    No, this has NOTHING to do with Google indexing your HTTPS site. If you didn’t have SSL certificate installed, HTTPS would never work at all… and Google cannot index sites that don’t exist. But your site workes perfectly with HTTPS. Heck, you even gave your link as HTTPS and not HTTP.

    Thread Starter M Ehsan Qureshi

    (@ehsan92110)

    Thank You Sir for your reply and guide but also there is another issue of permanent migration over https and 404 error on internal pages/posts with custom permalink. Can you please help me in this regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google indexing my site with https I Want to Redirect it over https but 404’ is closed to new replies.