I have been told to add a blog to a route for SEO purposes instead of subdomain. However I can't seem to figure out how to do this for a React app hosted on Firebase. Currently my Ghost bLog is hosted through heroku on my apps subdomain, I want to move it to an route. i.e instead of blog.myapp.com I want myapp.com/blog. How exactly can I achieve this, Using CNAME for the route(is that possible)?
Related
I've tried connecting my Heroku app to a custom domain. When I go to my custom domain a redirect happens but the url then appears as "{name}.herokuapp.com". I bought the domain from Hover and have added both www.{domain}.com and {domain}.com to Heroku. Output of heroku domains shown here:
I then added both targets to Hover (shown here):
I'm quite confused and any help would be great.
After talking to Hover customer support I found out that aliasing with Heroku isn't possible. They offer redirects but that's it. They need an IP address to use as an A name but Heroku changes your IP address regularly so it's not possible. I'm moving it to NameCheap and using that instead.
This is primarily a strategic question.
I have been using Laravel as of late to build some apps and have an multi-user platform/domain based.
In other words I want to create a web app (and ultimately a mobile app) that I can deploy as a new site/app for a new user who signs up.
So, for instance I have built a site all about Chihuahua's with features for dogs.
But I want to reproduce said site/app for a new user who will use the app to run a site about Dobermans. Unique domain and everything, so I am thinking it would be a whole new install rather than sub-pages of the original app.
Does Laravel allow you to somehow create an app the way you want it and then deploy it out? And then if you updated the base app you could re-deploy it similar to how wordpress works.
Bare bones laravel does not support multi domain and hosting. But it is possible to get some sort of api for a hosting service and domain service and have them deploy their "dog" site like that.
Example
Let's say we have a domain www.example.com.
This domain points to Heroku and we have functional website.
example.herokuapp.com
www.example.com
When we load the website
www.example.com
our website works and succesfully loading App on Heroku. Let's say it is running a Django framework (Python Environment)
There is another website that has different IP and is built in Ruby Rails for example and is running on different host provider.
If we load the website www.example.com, we are on the homepage, we can easily browse different pages like about, photos, videos etc.
Is there a possibility if I type
www.example.com/store/
that it would load that ruby rails website?
Let's remove possibilty moving the app from different provider to heroku or any other provider that www.example.com is on (or precisly were example.com points to in DNS).
Is it possible to map it somehow or point it in DNS to make it work like that?
Short answer: no.
Longer answer, you could use a 301 redirect from /store/ to the other site, or a subdomain, like store.example.com. For more information, read up on DNS A records, as you suspected! Good luck!
So I am fairly new to laravel and especial to its deploying. I set up a fortrabbit application and got my website running so that's all good. The thing is though, the app url is not the one I wanted. I have an older website running without Laravel, and that is the url I want it to be hosted on. I have the ftp credentials for the old site but I have no clue how I can sort of clone the new Laravel site to the old one.
Briefly, I have a Laravel app running on insertname.eu1.frbit.net but I want it to be hosted on www.insertname.com which an older site is being hosted on for the time being.
Can anyone help me out? There must be a way to do this. Thanks alot!
The fortrabbit "App URL" is meant for testing/development/configuration and can't be changed. However you can route other domains to your App on fortrabbit. You do so by pointing the domain to the "App URL" via a CNAME and by registering the domain in the App settings in the Dashboard.
I have a very simple sinatra app (teaser page) running on Heroku on a custom domain. All is working well.
I also have a blog. It's running on a different heroku app under the standard heroku domain.
My question:
How can I make my sinatra app redirect 'www.mydomain.com/blog' to the other heroku app (e.g. the blog). Preferably the 'www.mydomain.com/blog' url is kept in the address bar of the user's browser..
I think i need some kind of rack redirect in my app, but i have no clue how to get it done..
Help is very much appreciated.
ps
I know you can put the blog at blog.mydomain.com, but that is not a solution in our case
You won't be able to redirect to the other heroku app and maintain www.mydomain.com/blog in the address bar. To do what you want in traditional hosting would require a reverse proxy to be setup which is not possible on Heroku - you would see .heroku.com.
If you're happy to redirect to the heroku.com - something like
get '/blog'
redirect 'http://<appname>.heroku.com'
end
If blog.mydomain.com isn't an option then the only option is to combine the sinatra app and the blog app into one app on www.mydomain.com and go from there.