operationcode_frontend icon indicating copy to clipboard operation
operationcode_frontend copied to clipboard

move vettec to primary frontend

Open apex-omontgomery opened this issue 5 years ago • 16 comments

Consolidate random urls

Why is this feature being added?

Currently have vettec.operationcode.org in a different repository than the primary operation code. https://github.com/OperationCode/vettec

What should your feature do?

Create a new page within this project to house this information, do we continue to use the vettec subdomain or do we redirect this old subdomain to operationcode.org/vettec?

apex-omontgomery avatar Aug 27 '18 02:08 apex-omontgomery

Possible duplicate: https://github.com/OperationCode/operationcode_frontend/issues/356

My two cents: It doesn't seem useful to create a page for the https://vettec.operationcode.org/ content, as it is out of date. The VET TEC act was merged into the Forever GI Bill, which has already been passed/signed.

jjhampton avatar Aug 27 '18 15:08 jjhampton

Per conrad: Vettec can be sunsetted Or redirected to OC.org the bill passed iwth Forever GI bill.

apex-omontgomery avatar Aug 27 '18 15:08 apex-omontgomery

The route exists via SEO and we don't wanna drop people...

I also feel like it'd be confusing if we simply redirect, but maybe that's the best move.

kylemh avatar Aug 27 '18 18:08 kylemh

Redirect to OC.org seems like a good way to capitalize on the existing SEO indexes. Generally, redirects are the best way to handle old/stale pages where we no longer want to serve content. At some point Google will probably stop indexing the page anyway, since we'll just be redirecting and the original content will be gone.

We can also submit requests to Google to stop indexing the page, as @sethbergman has explained for other issues elsewhere.

jjhampton avatar Aug 27 '18 19:08 jjhampton

Nothing can be done in the front-end code. I tried altering the CNAME to point to our website in DNS Simple, but now the link is simply broken.

kylemh avatar Oct 01 '18 08:10 kylemh

@jjhampton wrote earlier:

We can also submit requests to Google to stop indexing the page, as @sethbergman has explained for other issues elsewhere.

This is the way to go if you don't want the link(s) to be search results.

@kylemh can you elaborate on this:

The route exists via SEO and we don't wanna drop people... I also feel like it'd be confusing if we simply redirect, but maybe that's the best move.

I appreciate the additional details. I've not been on Slack recently. BTW awesome work on the new front-end repo! :smiley:

sethbergman avatar Oct 13 '18 00:10 sethbergman

My concern is a little less valid since the page has been broken for nearly two weeks (and is SSR, so the Goog prolly already indexed a 404 😓 ), but I was only concerned with users clicking an indexed link after being given a preview of its contents from Google, but then being redirected to a completely different page that didnt match the preview item on Google.

kylemh avatar Oct 13 '18 01:10 kylemh

It would still be a good idea to use Google Webmaster Tools to remove the 404 page from search results. Last I checked it was still showing up on search results. Although I must say that it's one of the coolest 404 pages I've ever seen.

sethbergman avatar Oct 13 '18 10:10 sethbergman

@sethbergman so weirdly enough I've done it before, but it seems to continue to come back.

kylemh avatar Oct 13 '18 19:10 kylemh

I think we need to add a disallow rule on a robots.txt file. Either that or add <meta name="robots" content="noindex, nofollow"/> to the 404 component. Maybe both; what do you think?

  • https://developers.google.com/search/reference/robots_meta_tag#handling-combined-indexing-and-serving-directives
  • https://moz.com/learn/seo/robotstxt

sethbergman avatar Oct 13 '18 20:10 sethbergman

That sounds good to me. 👍 I'm no SEO expert 🙈

kylemh avatar Oct 13 '18 20:10 kylemh

I'll put in an issue and PR today. SEO is it's own beast. You're still a badass software developer @kylemh

sethbergman avatar Oct 15 '18 19:10 sethbergman

Google isn't indexing the 404 (at least not currently), it seems like it's indexing https://www.operationcode.org/apprentices which leads to a 404. If we change it so that bad links redirect to 404 instead of just showing the component, I bet google will stop indexing them.

dgisser avatar Oct 28 '18 17:10 dgisser

@sethbergman @hollomancer

That explains that! Thanks so much @dgisser

kylemh avatar Oct 28 '18 18:10 kylemh

Cool! We still need to add the following to the 404 component so that it doesn't get indexed.

<meta name="robots" content="noindex, nofollow">

As for the other links, is there an easier way than the Google Webmaster URL tool for removing old links? Redirects to the 404 page for each outdated link seems more like a bandaid rather than just removing them and reindexing the site. If there's a better way to approach this, I'm open to discussing the implementation. Thanks for your help and research on this! 👍

sethbergman avatar Oct 29 '18 07:10 sethbergman

This project doesn't have a proper 404 page. The status code for the 404 page is 200, which is bad practice, and why Google thinks it deserves an index.

@sethbergman I think something like this (https://stackoverflow.com/a/40805821/2158302) would not require much modification, and by sending the 404 status code we would be in the clear

dgisser avatar Oct 29 '18 08:10 dgisser