google index issue

#855660
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    We apologize for the issue you are facing with your ticket being closed unexpectedly. Thank you for bringing your concerns back to us. Let’s address your questions one by one:

    1. Disallowing Attachment IDs in robots.txt: Yes, you can add Disallow: /?attachment_id=* to your robots.txt file. This will prevent search engines from indexing those specific attachment pages. It is generally considered a good practice to disallow these pages if they do not provide valuable content for SEO.

    2. Preventing wp-content/uploads from Being Indexed: To stop the files in the wp-content/uploads directory from being indexed, you can add the following lines to your robots.txt file:

      User-agent: *
      Disallow: /wp-content/uploads/

      This will instruct search engines not to crawl any files in that directory. Disallowing the entire uploads folder is acceptable if you do not want those files indexed, but be cautious as it may prevent useful images or documents from appearing in search results.

    3. Using Options -Indexes in .htaccess: The Options -Indexes directive in your .htaccess file prevents users from viewing a directory listing of files if there is no index file present. This can help secure your uploads directory by not allowing users to see all files directly. However, it does not directly affect indexing by search engines. It’s more about security and user experience.

    If you need further clarification or assistance, please feel free to reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.

    Thank you for your patience, and we hope this information helps you resolve your indexing issues!

    Sources:
    Can I NoIndex PDF Files Using an SEO Plugin? » Rank Math
    How to Fix ‘Page Indexed Without Content’ Issue in Google Search Console » Rank Math

    Hello,

    Thank you for contacting Rank Math support. Your other ticket was not closed, and we have responded to the ticket. But here are the response to this ticket:

    1. Yes, you can add that Disallow rule, it isn’t “bad for SEO”, but those pages will no longer be on Google’s index and search results.

    2. Here’s an example /htaccess code for redirecting a file:

    #Begin 301 Redirects
    Redirect 301 /wp-content/uploads/2024/08/ss_63a55faff0bce97d71dc1b6b2066ad8365b38a6c.1920×1080.webp https://www.example.com/new-sub-page/new-sub-sub-page/
    #End 301 Redirects

    You can reach out to your website developer to customize it further for your exact needs. The code above is for redirecting a file, to disable the crawling of your entire wp-content folder, use this robots.txt rule:

    User-agent: *
    Disallow: /wp-content/uploads/

    3. You can ignore this, the other options should cover this. Or you can speak with your web developer about it.

    We hope this helps clarify the issue. Please let us know if you have any other questions or concerns.

    game cravings
    Rank Math free

    thanks

    Hello,

    We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘google index issue’ is closed to new replies.