1

My site runs on WordPress. I have a custom post type of my Projects. These projects are categorized using Project categories. Each Project category has it's 'archive' page, where the projects are displayed. For every category (every archive page) I can set unique meta description, title, keyphrase and everything, which is great.

However, I am not using default WP's archive pages. I am using a JavaScript library (Isotope) to dynamically sort my projects in real time. I'm not going to elaborate, it just looks and feels better to have this interactive filter.

As a result, all of my Projects are being displayed on my Projects page:

example.com/projects/

All the archive pages for my project categories exist, though. So, I have:

example.com/project-category/some-category/
example.com/project-category/another-category/

(These archive pages have their own SEO meta data)

Since I do not want to use archive pages, I am redirecting every archive page automatically to my /projects/ page, with custom URL query parameter so the right projects are displayed by default on page load:

example.com/project-category/some-category/
# This is redirected to
example.com/projects/?category=some-category

Everything works well. The site technically is on /projects/ page, but 'some-category' is selected in Isotope filter automatically. However, search engines are reading the destination page's meta data - so I have the same generic meta title and description for every project category.

TL-DR: Can I force Google to consider source page meta data, instead of target page, when using 301 redirect?

1 Answer 1

1

For the TLDR question - no. The return headers contain the 301 status code and therefore the rest of the content on the source page is not read. Once redirected to the target page, the 200 code is returned and the content is read.

The full question - there's probably same way to output the source metadata to a variable and then pull that variable on the new target page. Or maybe you can disable the archives completely but I'm not sure how your setup would work with these options.

1
  • To elaborate a little more, if you were writing the page in JavaScript you should also be able to dynamically write new meta tags in that JavaScript based on your URL parameters and Google pick up on those. Commented Oct 30, 2020 at 22:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.