Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing /blog dir to / #136

Closed
iliamrv opened this issue Jul 19, 2021 · 2 comments
Closed

Changing /blog dir to / #136

iliamrv opened this issue Jul 19, 2021 · 2 comments

Comments

@iliamrv
Copy link

iliamrv commented Jul 19, 2021

Hi there,

I'd like to move my current weblog to tailwind-nextjs-starter-blog preserving URL structure. The problem that I need [website]/[id] instead of [website]/blog/[id]. For example:

http://localhost:3000/guide-to-using-images-in-nextjs

As I am a newbie in Next.js, I don't know what should I change exactly in source code. Can you help me? Thanks.

@timlrx
Copy link
Owner

timlrx commented Jul 19, 2021

Hi, I would probably recommend redirecting your existing routes to the new ones. You can see an example of that on my blog.

@iliamrv
Copy link
Author

iliamrv commented Jul 20, 2021

thanks a lot for the solution!

@iliamrv iliamrv closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants