简体   繁体   中英

Is HMVC Codeigniter SEO friendly?

I am using HMVC CI . these URLs all are the same and show duplicated contents.

example.com

example.com/welcome

example.com/welcome/welcome

example.com/welcome/welcome/index

Can i solve this issue and make my project SEO friendly? i think all modules have this issue!

You can use routing to rewrite the urls.

$route['journals'] = 'blogs';

http://www.codeigniter.com/user_guide/general/routing.html

So your URL's can be anything you want them to be.

The duplicated content issue can also be solved by setting a canonical url for each page in the controller. You can read about canonical urls here:

https://support.google.com/webmasters/answer/139066?hl=en

But basically you add a meta link in the header to say what page this should be called for SEO:

<link rel="canonical" href="https://example.com/my-preferred-url" />

Finally, you could rename your modules, controllers and functions to more accurately reflect what you would like to see in the url.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM