Home Rails how to change url for seo
Reply: 0

Rails how to change url for seo

user697 Published in May 21, 2018, 10:31 pm

i am coding a news website. I'm trying to implement best seo practices. For seo , post urls should be like : ( i use friendlyId gem )


But if i use rails style , it generates this url for me:


i tried to override routes like :

resources :post #, :path => "/"

But when i do this , posts work well but i can't access my other routes like :

www.mywebsite.com/contact  www.mywebsite.com/admin

in this way , rails see all pages as post.

I need help to do this !

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304215 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO