# Post link get 404 only at nginx

**URL:** https://talk.jekyllrb.com/t/post-link-get-404-only-at-nginx/2673
**Category:** Help
**Created:** [February 26, 2019, 8:06am UTC](https://talk.jekyllrb.com/t/post-link-get-404-only-at-nginx/2673 "2019-02-26T08:06:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![panda2tv](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@panda2tv](https://talk.jekyllrb.com/u/panda2tv)
#### Post date: [February 26, 2019, 8:06am UTC](https://talk.jekyllrb.com/t/post-link-get-404-only-at-nginx/2673/1 "2019-02-26T08:06:57Z")

</div>

Hi Everyone,

All my website links working well locally, but when I deploy to my VPS nginx server, the post links get 404 return. And only blog post links get 404, other link working perfectly.  
I think it is because jekyll server direct the post link to [https://1stopdropshipping.com/blog/2019/02/Three-Alternatives-To-AliExpress.html](https://1stopdropshipping.com/blog/2019/02/Three-Alternatives-To-AliExpress.html) (yes this is my site) while nginx direct it to what it is [https://1stopdropshipping.com/blog/2019/02/Three-Alternatives-To-AliExpress](https://1stopdropshipping.com/blog/2019/02/Three-Alternatives-To-AliExpress), without **.html** ;  
I try to update nginx config to redirect it to \*html but it seems not a good solution.  
Any similar issue like me and how you handle it?  
Any help would be appreciated!

---

<div class="post-metadata">

### Author: ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)
#### Post date: [February 26, 2019, 5:32pm UTC](https://talk.jekyllrb.com/t/post-link-get-404-only-at-nginx/2673/2 "2019-02-26T17:32:42Z")

</div>

you have a different permalink setting for your blog I think. You can set it so it will be `https://1stopdropshipping.com/blog/2019/02/Three-Alternatives-To-AliExpress/` and then it will work.

If you do permalink: pretty it should work. If that is not what you want post what you set it to and someone can help get it they way you want.

---

<div class="post-metadata">

### Author: ![panda2tv](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@panda2tv](https://talk.jekyllrb.com/u/panda2tv)
#### Post date: [February 27, 2019, 3:11am UTC](https://talk.jekyllrb.com/t/post-link-get-404-only-at-nginx/2673/3 "2019-02-27T03:11:22Z")

</div>

That’s it! Thank you so much. I should go thru all the docs!
