Hello all.

I am new here so I am not sure if I am posting in the right board but here I go anyways.

I have a site, lets call it www.xyz.com. Now I would like to add a blog to the site but want to put this blog on a separate server. However, the problem here is SEO. I want this blog to be indexed by search engines as part of www.xyz.com. Is there any way I can do this if it is on another server?

Thanks for your help,
Jordan

Dani AI

Generated

Short answer: yes — you can have the blog physically on another machine and still have search engines index it as part of your main site, but only if the URL shown to bots stays on your domain. asked the right question; correctly warned that two different servers cannot both answer the same public URL unless something in front of them preserves the URL. was on the right track about placing the blog "under" your site — the difference is whether users/bots are redirected (bad for this goal) or proxied (good).

The cleanest, SEO-safe solution is to have your front-end web server act as a reverse proxy for the blog. The front-end serves URLs on your domain and fetches the content from the remote blog host. Important points: keep the Host header so the backend can generate correct links, ensure the CMS is configured for the public URL (or use relative links), and forward X-Forwarded headers so the backend can see the client IP/HTTPS state. Example Nginx fragment:

location /blog/ {
    proxy_pass http://10.0.0.5/;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_redirect off;
}

If reverse-proxying is impossible, host the blog on a subdomain. That’s simpler to set up, but search engines may treat it as a separate host. Mitigate this by adding the subdomain to your Search Console account, publishing a sitemap that includes the blog URLs, using strong internal linking from the main site, and ensuring canonical tags are correct.

Quick troubleshooting checklist: confirm pages return 200 under the main-domain path, check canonical tags and absolute URLs, verify robots.txt under your domain doesn’t block the blog path, test with URL inspection tools, and watch Search Console and analytics after launch. Avoid iframe embeds and client-side redirects if the goal is to have the content indexed as part of your main site.

Recommended Answers

All 6 Replies

Nope. Any reason you can't host the blog on your own site?

Hi,

Yes, you can surely do this, please host the blog on another server and point your sub-directory to that blog. For example www.xyz.com/blog/ - this should point to that new server where you hvae the blog :)

Quick tip: Add one-way links to get your blog indexed by the search engines quickly :)

Hi,

Yes, you can surely do this, please host the blog on another server and point your sub-directory to that blog. For example www.xyz.com/blog/ - this should point to that new server where you hvae the blog :)

That won't work. The site is still on another server and the URL will change when the user/bot goes there.

Hi,

Is that not possible to point the sub-directory to another server, but with the same URL!? :!:

I dont think you can have 2 servers with the same URL to begin with.

I dont think you can have 2 servers with the same URL to begin with.

Hi,

You can use sub-domain and host the blog :)
This is a good idea.

:cool:

http://blog.xyz.com/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.