Sorry, you do not have permission to ask a question, You must login to ask a question.

Sorry, you do not have permission to ask a question.

brainchime.com

brainchime.com

brainchime.com Navigation

  • Home
  • About Us
  • Contact Us

Mobile menu

Close
  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

brainchime.com Latest Questions

Admin
Admin
Asked: October 10, 20242024-10-10T10:43:42+05:30 2024-10-10T10:43:42+05:30In: SEO

How to resolve page with redirect error in Google Search Console instead of correct .htaccess file

I have been struggling for a few weeks with an issue that I am unable to fix, and I am not getting what to do now. In Google Search Console, Assume page with a redirect error for my website https://example.com.

http://example.com
http://www.example.com
https://www.example.com

I can understand these redirect errors because in my .htaccess file, I redirect users from HTTP to HTTPS and from www to non-www, i.e., https://example.com. My .htaccess file code is written below:

# BEGIN LSCACHE
# END LSCACHE
# BEGIN NON_LSCACHE
# END NON_LSCACHE
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com/
RewriteRule (.*) https://example.com/$1 [R 301,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress

My WordPress settings are set to https://example.com my links in the XML sitemap use https. I inserted the below code snippet in the .htaccess file after code RewriteEngine On for redirecting to non-www and https versions of the website and started new validation, google validation failed thrice. I still have not gotten a fix for the page with the redirect error appearing in the Google search console under the page indexing section.
RewriteCond %{HTTP_HOST} ^www.example.com/
RewriteRule (.*) https://example.com/$1 [R 301,L]

How to fix this error?

.htaccessgoogle-search-consolehttps-redirect
  • 0
  • 0
  • 11
  • 7
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Related Questions

  • Missing field 'name' (in 'mainEntity.suggestedAnswer.author') in google search console for Q&A pages
  • Missing field 'mainEntity' error in Google Search Console for QA page schema
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Admin
    Admin
    2024-10-10T10:47:15+05:30Added an answer on October 10, 2024 at 10:47 am

    Further, I came to know that this is not an error. This is information for you in the Google search console to let you know that the mentioned pages in the screenshot start with (http, http://www, https://www) for the website is being redirected to another URL so that you can verify that the redirect is correct which is done as per plan. You only have to care about your target page; please check if your target page, which is https://example.com, is indexed or not.

    If your target page is indexed, then you can ignore this redirect error in the Google search console, i.e. your audience will always see the target https version of the page.

    Type the below command in Google search and press Enter to confirm whether your target page is indexed or not.
    site:https://example.com

      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Sidebar

Statistics

  • Questions 143
  • Answers 177
  • Comments 0
  • Popular
  • Answers
  • Admin

    Why do we use OVERLAY keyword in data structure subfields ...

    • 12 Answers
  • Admin

    How to call sql stored procedure with output parameter from ...

    • 6 Answers
  • Admin

    How to use declare global temporary table statement in RPGLE?

    • 5 Answers
  • Admin
    Admin added an answer CPF4131 is a record format level check error. This indicates… October 18, 2024 at 1:58 am
  • Admin
    Admin added an answer To open the command prompt with administrator rights you can… October 17, 2024 at 12:27 am
  • Admin
    Admin added an answer In AS400, "AS" stands for Application system. This article discusses… October 13, 2024 at 12:49 pm

Related Questions

  • Admin

    Missing field 'name' (in 'mainEntity.suggestedAnswer.author') in google search console for ...

    • 1 Answer
  • Admin

    Missing field 'mainEntity' error in Google Search Console for QA ...

    • 1 Answer

Trending Tags

.htaccess (1) as400 (123) bing-webmaster (2) control-language (12) db2 (33) ftp (8) google-adsense (1) google-search-console (3) https-redirect (1) iasp (4) ifs (22) jar (4) operations (3) php-my-admin (1) qshell (3) robots.txt (4) rpg (26) stored-procedure (3) stroed procedure (1) triggers (1) yoast (4)

Explore

  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

Footer

BrainChime

BrainChime is a blog that posts question-and-answer-based format articles on diverse topics and engages in discussions by allowing people to provide answers/comments without the need to register and log in.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • FAQs
  • Categories
  • Tags

© 2024 BrainChime. All Rights Reserved
by BrainChime.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.