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
-
Our new site will be using static site generator which is supposed to be better for SEO?
Hi folks, Our dev team is planning on building our new marketing webpages on SSG or Static Site Generator(we are stepping away from SSR). Based on my research this is something that can help our SEO in particular for site speed (our site has a poor score).
Intermediate & Advanced SEO | | TyEl
Are there any challenges or concerns I should be aware regarding this direction? If so what are they and how can this be addressed? Thanks0 -
Merging two sites to one Rel Can Question
Hi All, We have 2 brands (1 main 1 product as a satellite domain) that we're merging into our main brand. When doing a 301 redirect - should we redirect everypage of the product satellite to the new site or is 1 main redirect fine? I'm Confusing ....yep. Ill do an E.G www.nike.com & www.air-jordan.com we are now shutting down www.airjordan.com and will be migrating all the content to www.nike.com/air-jordan Just of course there will be other pages like air-jordan.com/order-now . Should i do a rel can from air-jordan.com/order-now to www.nike.com/air-jordan/order-now ? Or is simply a 301 from www.airjordan.com to www.nike.com/air-jordan sufficient? Cheers!
Intermediate & Advanced SEO | | CFCU0 -
Javascript onclick redirects / porn sites...
We noticed around 7 websites which with domains that were just recently registered (with privacy protection). They are using our website keywords/titles and brand name and the sites are mostly porn / junk sites. They don't link to our website directly but use a javascript onclick redirect which is why we think we aren't seeing them in our backlinks report. We've been in business for over 12 years and haven't come across sites like this before. We recently lost our first page rankings for a few of our highest converting key phrases and have been digging in to possible causes. Just wondering if these sites could be impacting our results, and how to figure out if there are more like this? Examples: nesat.net
Intermediate & Advanced SEO | | EileenCleary
flowmeterdirectory.biz
finnsat.net
dotsjobs.net0 -
Can I get posts from a blog host and put them on a private website ?
Hello everybody ! My client has a blog for 2 years with many posts on overblog, a French blog host like Blogger. Now we are currently building a new website with a new blog within the site. Those posts are valuable content that bring some traffic to the old blog. My idea was to re-publish those posts on the new blog to start with some good content. Unfortunately, the blog host don't let me use 301 redirects or re=canonical tags to tell search engines that the post is now in the new website and avoid duplicate content. What is the best SEO solution in this case ? Can we delete the posts on the old blog and publish them in the new one ? Thanks for your help! Bruno
Intermediate & Advanced SEO | | Buddyweb0 -
E-Commerce site - How do I geo-target towns/cities/states if there aren't any store locations?
Site = e-commerce Products = clothing (no apparel can be location specific like sports gear where you can do the location specific team gear (NBA, NFL, etc)) Problems = a. no store front b. I don't want to do any sitewides (footers, sidebars, etc) because of the penguin update Question = How do you geo-target these category pages and product pages? Ideas = a. reviews with clients locations b. blog posts with clients images wearing apparel and location description and keywords that also links back to that category or be it product page (images geo- targeted, tags, and description) c. ? Thanks in advance!
Intermediate & Advanced SEO | | Cyclone0 -
How do i redirect www.domain.com/ to www.domain.com/index.php
I keep getting in my analytics www.domain.com/ and www.domain.com/index.php how do i make it consistently redirect to one version and not to both. I know about htaccess redirect and am already using this so am puzzle to which is the best one to use. below is the example .htaccess file im using. Options +FollowSymlinks
Intermediate & Advanced SEO | | mattmillen
RewriteEngine on
rewritecond %{http_host} ^domain.co.uk [nc]
rewriterule ^(.*)$ http://www.domain.co.uk/index.php$1 [r=301,nc] which is better for SEO should i forward to www.domain.com/ or www.domain.com/index.php0 -
Any tips for moving my blog from blogspot.com to a domain I already own?
I own a blog that's getting popular, http://iworktemplates.blogspot.com, and I have many good linking domains pointing to it namely, apple.com/iwork/resources. I wondered if anyone had any tips on how I could move this without loosing that tremendous link juice?
Intermediate & Advanced SEO | | JoelWolfgang0 -
Affiliate Site Duplicate Content Question
Hi Guys I have been un-able to find a definite answer to this on various forums, your views on this will be very valuable. I am doing a few Amazon affiliate sites and will be pulling in product data from Amazon via a Wordpress plugin. The plugin pulls in titles, descriptions, images, prices etc, however this presents a duplicate content issue and hence I can not publish the product pages with amazon descriptions. Due to the large number of products, it is not feasible to re-write all descriptions, but I plan re-write descriptions and titles for 50% of the products and publish then with “index, follow” attribute. However, for the other 50%, what would be the best way to handle them? Should I publish them as “noindex,follow”? **- Or is there another solution? Many thanks for your time.**
Intermediate & Advanced SEO | | SamBuck0