Google Indexing and Redirects

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I have a site (I can't provide a link to it), where we're using links to generate lightboxes that have iframes to content.

We're linking to the content like so:

   href='/path/to/lightbox.php' onclick='generateLightbox("/path/to/lightbox.php")'>link

On the page, we're using the following to forward to the main page and open up a lightbox if a user tries to access the lightbox content directly:

  

Our problem is that google is not indexing these lightbox pages. While going through the webmaster tools, it's giving a warning that a "redirect" is detected.

Is there anyway I can make sure to redirect users to the main page and open up a lightbox without tripping up google's quality checker? I believe my problem is that google is seeing the redirect and not indexing the content, yet I'm using the method I've seen suggested on a couple different resources such as this SO question: Redirects & Google Indexing

profilepic.png
manpreet 2 years ago

In the end, the only solution we could find was to detect for google bot, and not redirect.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.