Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #1104448

    Hello,
    after i changed my page to a new url and set up ssl i have problems with Indexing the starting page. Before there was no problem.
    Gtmetrix and Google Insights cant check my Page. For example the Starting page https://www.domain.com get an error:

    Lighthouse returned error: ERRORED_DOCUMENT_REQUEST

    When i check another page with https://www.domain.com/mypage/ all is fine.

    I have turned “Display selected page without redirect” on and select my Main Page. When i turn off the custom 404 Page this have no effect for the Indexing problem. Maybee it has something to do with the Url or SSL Certificate?
    My .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    <IfModule mod_headers.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    
    <IfModule mod_headers.c>
    Header set Strict-Transport-Security "max-age=15768000; includeSubDomains" env=HTTPS
    </IfModule>

    Changed my domain from example: http://domain.com to https://www.domain.com
    I used a plugin for search and replace all.
    My real domain is in private content.

    Hope the is fast help that my page dont got a rank down in Google.

    Thanks,
    Banshee350

    • This topic was modified 5 years, 7 months ago by Banshee350.
    #1105684

    Hey Banshee350,
    Sorry for the late reply, Please try disabling your autoptimize plugin and include admin login and ftp access in the Private Content area so we can investigate further.

    Best regards,
    Mike

    #1106035

    Hi Mike,
    i have deactivate the autoptimize plugin. Is there no way to use it? The Login Data is in private content.

    #1106122

    Hi,
    Thanks for the login and ftp access, I don’t think it’s the theme or the .htaccess
    I believe it’s your DNS zone settings, please check to see if you have an “A” record for “www” entry of your domain. The “A” record should point to the same IP as your default main Domain.
    Please check with your domain name registrar and ask them to assist. They will need to flush the nameservers and it could take a few hours or a day to take effect.

    Best regards,
    Mike

    #1106157

    That are my settings. Dont really know what to change there. When I check the Domain the IP is the same as the A record.
    I checked with https://whoer.net

    Picture of my DNS settings are in private content.

    #1106379

    Hi,
    Thanks for the feedback, I looked at whoer.net but I don’t see where to test a page, it just shows me my IP info.
    Your DNS screenshot looks good, but I’m not an expert with DNS, for one of my sites my DNS looked good to me but my registrar added a field and flushed the server, and the next day it worked fine.
    So this is why I suggest this, perhaps you could ask?
    I don’t believe this is a theme issue because you said it was working fine until you changed to include the “www” in your domain, and my tests show that the “www” is throwing a 404.

    Best regards,
    Mike

    #1106934

    I got in contact with my domain provider. They take a look into it. I’ll report as soon as I get a reply.

    #1106952

    I’d suggest to try this again … just to make sure … maybe your browser cached the 404 inbetween:

    I have turned “Display selected page without redirect” on and select my Main Page. When i turn off the custom 404 Page this have no effect for the Indexing problem.

    Adjust this Enfold setting to “No custom 404 page selected”.
    Clear all WP Caches.

    Then check the HTTP response with an external tool, for example: https://httpstatus.io/

    #1106957

    And double-check your htaccess rewrite-rule.
    You have a space between “^” and “https“.
    Maybe it’s just a copy&paste thing or it happened when you removed your actual domain … but it can not hurt to check it.

    In this line:

    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    Edit:
    Sorry … my fault … looks like the “^” is there to define the source url.
    But i think it looks unusual … i would write it without that … or this way to grab the request_uri:

    ^(.*)$

    Edit:
    Above can be ignored … your rewrite-rule is ok … sorry … :-)

    #1106983

    Hi cg,
    I tested it with the cache, but it’s not working. I also changed RewriteRule in htaccess but it also have no effect.

    #1106989

    Maybee something is wrong with caching in htaccess?

    <IfModule mod_expires.c>
     ExpiresActive On
     ExpiresDefault "access plus 1 month"
     ExpiresByType text/css "access plus 1 month"
     ExpiresByType text/javascript "access plus 1 month"
     ExpiresByType text/html "access plus 1 month"
     ExpiresByType application/javascript "access plus 1 month"
     ExpiresByType application/x-javascript "access plus 1 month"
     ExpiresByType application/x-font-ttf "access plus 1 month"
     ExpiresByType application/x-font-woff "access plus 1 month"
     ExpiresByType application/x-woff "access plus 1 month"
     ExpiresByType application/xhtml-xml "access plus 600 seconds"
     ExpiresByType application/pdf "access 1 month"
     ExpiresByType image/gif "access plus 1 month"
     ExpiresByType image/jpg "access plus 1 month"
     ExpiresByType image/jpeg "access plus 1 month"
     ExpiresByType image/svg+xml "access plus 1 year"
     ExpiresByType image/svg "access plus 1 year“
     ExpiresByType image/png "access plus 1 month"
     ExpiresByType image/x-icon "access plus 1 month"
    </IfModule>
    #1107373

    By the way i changed my permalinks from Plain to Postname before. Maybee this causes the error?

    EDIT: When i look in network analysis i see the 404 Error but on Data there is only a “/” but wich Data is it looking for?

    EDIT2: Called with my Webspace and Domain provider again but nobody have a clue how to help me. I got allways passed on to another person and everytime time I hear the same story. Now there is looking another one into it but i have no hope anymore.

    • This reply was modified 5 years, 6 months ago by Banshee350.
    #1107456

    Hi,

    Thank you for the update.

    Did you set the non-existing or 404 pages to redirect to your home page? Please try to unset that option as @cg recommended. It’s the Theme Options > Custom Error 404 Page settings.

    Best regards,
    Ismael

    #1107545

    I have some good news. I found a bug i think. When i have on “Custom Error 404 Page” settings “Display selected page without redirect” i got another field called “Select Your Custom Error 404 Page”. There I have my startpage selected. When i choose then on “Custom Error 404 Page” to “No custom 404 page selected” the field for “Select Your Custom Error 404 Page” hides but it doesnt works then. I need to deselect the custom page before so there is no page selected and then choose “No custom 404 page selected”. I dont think this is how it should be. Anyway I’am happy that I have found the error :)

    But i have turned custom 404 page back on cause i really need this. Is there a workaround for this one? Cause on google there are links that dont exist anymore and people then need a redirect to main page.

    #1107563

    Ok tried with the “All 404 Redirect to Homepage” plugin and it works. But is there a way without a plugin?

    EDIT: Also Yoast says Searchengines cant index my site. Dont rly know why. Is it compatible with Enfold?

    #1107575

    You are right, that selection should be deselected if someone chooses “No custom 404 page selected”.

    Regarding your question:
    Sure you can without a plugin … when you choose the Enfold 404 option “Redirect to selected page” it’s the same as with the plugin you mentioned.

    BUT:

    Short version:
    => You shouldn’t redirect all 404 error to the home page.
    Why would you do that? A visitor, who tries to open a page on your site, that doesn’t exist … and you just whop him to the front door? … Tell him what’s wrong on a dedicated error page and which possibilities are there (“sorry, we couldn’t find what you are looking for, maybe you wan’t go this way or search or something …”).

    Long version:
    => https://yoast.com/seo-anti-patterns-301-redirect-all-your-404s-to-your-homepage/

    “Sometimes I encounter new “SEO hacks” that people apply, that are actually anti-patterns. One of these new anti-patterns I noticed is the pattern of 301 redirecting all your 404 pages to your homepage. Let me explain why this is a lot like cleaning up your room by throwing everything into a drawer and what the better solution would be.”

    #1107777

    Hi Banshee350,

    If search crawlers can’t access your site then please try to unset the 404 error page in the theme options, don’t select the home page there as has been recommended previously in the thread.

    Best regards,
    Rikard

    #1108161

    @cg I redirect to the home page cause the google entrys are from my old Website and the links that refer to certain categories no longer exist. On the home page are all the categories you can click on. Maybe I’ll take a different approach. The main thing is that the error has been found.

    @Everyone: It’s strange if I deactivate the option and it still keep the option setting. Unchecking the page before disabling the option so that no errors occur is more than odd. I think this should be fixed so that others don’t have these errors.

    But anyway I am happy to have found the error and thank you for all your support. Enfold’s support is insane!

    #1108266

    Hi,

    Thanks for the update and I’m glad that you got it working eventually. This is a small glitch on our end, if you disable the functionality it actually stays active until you select a different page or none at all.

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1108296

    Topic can be closed it’s all fine now, thank you.

    #1108341

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘Indexing problem 404 Error’ is closed to new replies.