Modifying to SEO friendly URL

My website has URLs not optimized for SEO. Underscore “_” is used instead of “-” everywhere. Now I am trying to fix this problem.
I am looking for a step by step guide for doing that.

Any help would be much appreciated.

As a start, I picked one URL “www.spacoversusa.net/about_us” and did a complete search of the website. I found several instances of “about_us”, replaced it with “about-us” and also renamed “about_us.ctp” to “about-us.ctp”

Got “Internal Error” when I tried to load the site.

Cake 2.7.3

Undo all of this and update the route instead.

Perfect, thank you. Tested and it worked.

It worked great for the static pages that had links on the landing page.

What is the best way to modify dynamic pages URLs. I understand “routes” can direct to the right code, but how to find out where the links are coming from.

Any help is much appreciated.

I don’t know if Cake 2.x also has it (I only worked with 3.x so far) but you could be able to use reverse routing for it?

Refer to the docs on reverse routing for this :slight_smile: