简体   繁体   中英

How can I make www.mywebsite.com/blog?

I have my website(HTML files) in a google cloud instance. (ex: www.mywbsite.com)

To start the blog, installed Wordpress using google cloud one-click installation at another instance, which is working fine, but to access it, I use an Ip address (different from the main website).

So, on one hand, I have the site, and at another have I have the Blog IP.

How can I merge these two things to achieve the following result? To this: www.mywebsite.com/blog (same instance or some link to the second)

From this: www.mywbsite.com (instance 1) + WP Blog IP (instance 2)

If you can point me some links/tutorials to better understand and solve this, I would be appreciated.

Have to tell you I am a very inexperienced tech guy, but eagerly trying to learn.

Thanks

If you want to use like subdirectory, it has to be in your instance-1 or you can use .htaccess and redirect to your instance-2.

However, if you use like this, you can't do what you want because Apache will rewrite address again and it will see www.instance-2.com .

I hope, it will answer your question; otherwise, let me know. I will update the answer.

Edit 1 - Add links

Thank you.

You should install Wordpress in a subdirectory instead of using cloud launcher and having it on another server. It's really easy to install WordPress manually. This is my favorite guide for any Debian based situation, not just rpi. Also this is the guide on the WordPress Codex. Just install it to the /blog subdirectory.

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