The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. SEO question regarding rails app on www.site.com hosted on Heroku and www.site.com/blog at another host

    SEO question regarding rails app on www.site.com hosted on Heroku and www.site.com/blog at another host

    Intermediate & Advanced SEO
    3 2 847
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Anward
      Anward last edited by

      Hi, I have a rails app hosted on Heroku (www.site.com) and would much prefer to set up a Wordpress blog using a different host pointing to www.site.com/blog, as opposed to using a gem within the actual app.

      Whats are peoples thoughts regarding there being any ranking implications for implementing the set up as noted in this post on Stackoverflow:

      "What I would do is serve your Wordpress blog along side your Rails app (so you've got a PHP and a Rails server running), and just have your /blog route point to a controller that redirects to your Wordpress app. Add something like this to your routes.rb:

      _`get '/blog', to:'blog#redirect'`_
      

      and then have a redirect method in your BlogController that simply does this:

      _`classBlogController<applicationcontrollerdef redirect="" redirect_to="" "url_of_wordpress_blog"endend<="" code=""></applicationcontrollerdef>`_
      

      _Now you can point at yourdomain.com/blog and it will take you to the Wordpress site._

      1 Reply Last reply Reply Quote 0
      • KaneJamison
        KaneJamison last edited by

        I don't understand how the Rails side of things work, but as long as the Wordpress URLs resolve to www.site.com/blog, and canonical tags reflect that, then you should be good.

        For app companies where there won't be many links accumulated to the app itself, we often recommend running a complete Wordpress website at www.mysite.com, and running their actual app at app.mysite.com. This allows for easy content management by the marketing team, and marketing projects don't require lots of developer resources to get implemented. Not saying you should do this, but it can simplify things from a marketing & IT perspective. If there's a public facing version of the app, for example how Moz allows pages like https://moz.com/researchtools/ose/ to rank, then it can make more sense to run everything on a single subdomain.

        Anward 1 Reply Last reply Reply Quote 2
        • Anward
          Anward @KaneJamison last edited by

          Hi Kane, thanks for that. After a fair bit of trawling the internet I eventually found the article below which provides a great way of doing what I wanted. For anyone else with an application built on rails (of which I'm sure there are quite a few!) then the following might make a lot of sense to those wishing to utilize the benefits of a Wordpress blog platform: https://medium.com/@parterburn/wordpress-inside-a-ruby-on-rails-app-c324fbf39ad8

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Blog.ledsupply.com VERSUS ledsupply.com/blog
            LindsayE
            LindsayE
            0
            5
            68

          • Something happened within the last 2 weeks on our WordPress-hosted site that created "duplicates" by counting www.company.com/example and company.com/example (without the 'www.') as separate pages. Any idea what could have happened, and how to fix it?
            Christy-Correll
            Christy-Correll
            0
            6
            161

          • Https://www.mywebsite.com/blog/tag/wolf/ setting tag pages as blog corner stone article?
            AlirezaHamidian
            AlirezaHamidian
            0
            6
            135

          • New my domain.com/blog option vs. my blog.mydomain.com option
            Alex-Harford
            Alex-Harford
            0
            9
            269

          • Website.com/blog/post vs website.com/post
            PortlandGuy
            PortlandGuy
            0
            12
            220

          • While SEOing .com.au websites should I submit blogs and PRs only in .com.au Blogging / PR sites?
            KS__
            KS__
            0
            6
            725

          • Redirecting www.example.com to www.example.com/directory/
            JamieCottle28
            JamieCottle28
            0
            3
            1.0k

          • WWW vs Non-WWW/Moving a site to a new CMS/Redirect all of the previous URLs
            KeriMorgret
            KeriMorgret
            0
            5
            934

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy