1

After doing research, I've learned that having 'underscore' in your url path can affect google search results, from this google recommended URL structure:

Google recommended URL structure

I initially have this route :

https://example.com/store_posts/my-first-store

the store_posts route have an underscore, so I first thought to rename everything including the Module and Controller, but that was tedious, so I thought of using Rails translated paths :

Rails Guide for routing, Section 4.7 Translating Paths

my question is, does using the method of translated paths will now fix the problem of google search and actually make the 'underscore' have no effects anymore?

Or also, will the old url still show up instead of the new one?

2
  • "does using the method of translated paths will now fix the problem of google search" - You can test it with Googles URL inspection tool. I doubt it's gonna make a huge impact as it's a pay to win system anyways... Commented Feb 10 at 11:11
  • "Or also, will the old url still show up instead of the new one?" - it's unclear what you're asking. If the question is if your Rails app will still support the old URL the answer is no unless you actively do something to make it happen. If the question is what URL Google will have indexed that's better answered by their docs. Commented Feb 10 at 11:13

0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.