简体   繁体   中英

virtual host for node app on heroku

I am trying to set up my blog to be displayed in a page instead of a subdomain. So if a post is post-1, I want the following:

blog.mydomain.com/post-1 --> mydomain.com/blog/post-1

The problem is that my app is a node app on Heroku and my blog is a wordpress. I looked at modifying the htaccess but if I am not mistaken, htaccess is only for PHP. Could somebody point me in the right direction ?

You can setup your own domain name with herkoku by following the steps listed here

https://devcenter.heroku.com/articles/custom-domains

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