menu

Academic

Chat about Source Themes Academic, the page builder for Hugo 👩‍💻📝🚀

Channels
Team

Unable to set desired URL

June 3, 2020 at 7:30am

Unable to set desired URL

June 3, 2020 at 7:30am
Hi, I am migrating my site from wordpress to Hugo. In wordpress, my post slugs were "xyz.com/post_name/". In Hugo, the posts are in folder "post" and the URL by default is "xyz.com/post/post_name". How can I change/redirect/set alias to "xyz.com/post_name"? Thanks in advance!

June 3, 2020 at 8:25am
Take a look here
like-fill
1
  • reply
  • like
The solution you are looking for, find you will in Hugo: https://gohugo.io/content-management/urls/
like-fill
1
  • reply
  • like
Thanks and . It helped.
like-fill
1
  • reply
  • like