SEO question regarding rails app on www.site.com hosted on Heroku and www.site.com/blog at another host
-
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 yourroutes.rb
:_`get '/blog', to:'blog#redirect'`_
and then have a
redirect
method in yourBlogController
that simply does this:_`classBlogController<applicationcontrollerdef redirect="" redirect_to="" "url_of_wordpress_blog"endend<="" code=""></applicationcontrollerdef>`_
_Now you can point at
yourdomain.com/blogand it will take you to the Wordpress site._
-
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
-
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
SEO - is it site or page
Hi When we're talking about SEO does the search engine only look at the whole site in general or do they look at the individual page when we're talking about SERP? So if you have a keyword "my search term" Does the search engine look at the site first or the page with the term on then rank you or is it the page then the site.
Intermediate & Advanced SEO | | Cocoonfxmedia0 -
Would changing the file name of an image (not the alt attribute) have an effect of on seo / ranking of that image and thus the site?
Would changing the file name of image, not the alt attribute nor the image itself (so it would be exactly the same but just a name change) have any effect on : a) A sites seo ranking b) the individual images seo ranking (although i guess if b) would be true it would have an effect on a) although potentially small.) This is the sort of change i would be thinking of making : ![Red ford truck](2554.jpg) changed to ![Red ford truck](6842.jpg)
Intermediate & Advanced SEO | | Sam-P0 -
Membership/subscriber (/customer) only content and SEO best practice
Hello Mozzers, I was wondering whether there's any best practice guidance out there re: how to deal with membership/subscriber (existing customer) only content on a website, from an SEO perspective - what is best practice? A few SEOs have told me to make some of the content visible to Google, for SEO purposes, yet I'm really not sure whether this is acceptable / manipulative, and I don't want to upset Google (or users for that matter!) Thanks in advance, Luke
Intermediate & Advanced SEO | | McTaggart0 -
Does anyone know how to appear with snippet that says something like: Jobs 1-10 of 80 in the beginning of the description on Google? e.g. like on: https://www.google.co.za/#q=pickers+and+packers
Does anyone know how to appear with snippet that says something like: Jobs 1-10 of 80 in the beginning of the description on Google? e.g. like on: https://www.google.co.za/#q=pickers+and+packers Any markup that could be used to be listed like this. Why is some sites listed like this and some not. Why is the adzuna.co.za page listed with Results 1-10 while some other with Jobs 1-10 ?
Intermediate & Advanced SEO | | classifiedtech0 -
Splitting sites similar to Diapers.com
Our site (theoilhub.com) sells automotive products. We want to split it into multiple sites (autoparthub,com, motoparthub.com) and so on. Some products will be listed on multiple domains because they have application in multiple domains (lubricants, helmets...). I was wondering what the best solution was for avoiding any problems with Google detecting too much duplicate content from our sites? would doing rel=canonical help? Any suggestions would be appreciated.
Intermediate & Advanced SEO | | theoilhub0 -
How important is the HTML structure for on-page/on-site SEO?
To be more specific, say a page layout has Header, Body, Left Sidebar, Footer sections. Which layout from the following options is more SEO-friendly? Header > Body > Right Sidebar > Footer Body > Header > Right Sidebar > Footer Does it make a big difference to code HTML so that the the copy of the body appears in front of all other sections when spiders crawl a website? Is it worth taking extra steps to make this happen? I am asking this question because our site has a header navigation with a lot of dropdown menus. So I assume that this is "noise" for spiders as it pushes the main content of the page down. Please bear in mind that the question is more geared towards how search engine see the page rather than how it appears to the end user as layout can be controlled by CSS.This question also assumes that all other on-site SEO best practices are followed for both options.
Intermediate & Advanced SEO | | Saugar0 -
Interesting site migration question.
Hi all. I'm looking for some thoughts on a migrations option we have. At the moment we have two E-Com sites ranking well for some of the same terms. An older site, and a nice new site. The older site is ranking very well for category and product terms, the new one is slowly coming up. Ideally we would like to have one site, the nice new one, and get rid of the old one. If I 301 the old site url's to the new sites will that bring the new site url's into the same position as the old ones? I'm just not sure how this effects sites that are already ranking well. Any ideas are welcomed but I'm really looking for a definitive answer. It's a big decision after all.
Intermediate & Advanced SEO | | PASSLtd0 -
While SEOing .com.au websites should I submit blogs and PRs only in .com.au Blogging / PR sites?
While SEOing .com.au, websites I am submitting PRs in sites like prweb.com, pr.com, prlog.com etc. Is that the right way or should I submit these PRs in Australian PR sites only (.com.au)?
Intermediate & Advanced SEO | | KS__0