Point client domain to our subdomain - dns

We are currently developing a CMS for our clients. We would like to host all their pages on our server like this:
https://www.example.com/client1website or https://www.example.com/client2website.
Is there a simple way to redirect content from https://www.example.com/client1website to https://www.theirdomain.com?
I know that Heroku or Wix work in a similar way, but I don't really know how to achieve it. Setting the CNAME for www to https://www.exmaple.com/client2website is probably not enough?

Godaddy can do https://www.client1website.example.com to https://www.theirdomain.com
But otherwise they are going to need to stop at your server first since you are pointing them down into your directory
You can redirect using status code 308

Related

Point sub domain to root AND redirect main domain

I have
'website.com' and 'newwebsite.com', both on LAMP environment.
I need
website.com redirecting to newwebsite.com
AND
old.website.com pointing to root of website.com
I have full control of both hosting and DNS records.
I can't figure out the best solution without creating a loop !
There are two choices here: redirects, or DNS records. If you do it with redirects it means the user will see that they have been forwarded elsewhere. If you use DNS, the user will not be aware of the deprecation of the old websites.
For this reason, I would use HTTP redirects for this task.
If you wanted to go the DNS route then simply have an A record for newwebsite.com and CNAMES for the others that point to it.

Point IIS8 virtual directory to a different server IP Address?

Here is my issue (keep in mind I am used to linux not windows servers): I have a website domain.com (.asp site) that is hosted on an IIS8 server and then a folder domain.com/folder that needs to point to a different servers IP address that holds a different site (linux server running Magento).
I know personally that a subdomain should have been created and DNS pointed to it correctly like folder.domain.com but I have inherited this issue and am trying to see if a solution is even possible.
Thank you all in advance.
I dont have previlage to comment in your question.! So I commenting here.!
Have you ever crossed symlinks? I hope you need the following link. The question is not clear though.
check this out.
Symlink created with mklink not working with IIS7.5 -- Windows 7
Responding as another team member on this project--
A 301 redirect is not a viable option by nature of Magento's URL request mechanism (if the request didn't originate from the URI set in the config, then redirect to it). We either end up with infinite loops, or IIS rewriting headers to trick Magento in to thinking the request URI is correct and performing a 301 redirect on every resource on the page (and the page itself, of course). This breaks miserably on POST requests.
We must be serving fully-qualified URLs from domain.com/folder/foo-bar.baz.
Switching to Linux is not possible. Please don't suggest what we already want.
Thanks, SO.

How do I direct my openshift website to a gandi.net domain name I bought? I tried, but it's not working?

Okay so I created a web app and am hosting it on openshift. Right now, they just gave me a CNAME something like myapp-someappname.rhcloud.com. So they told me to use that CNAME to redirect to my domain.
Now on GANDI I bought a .com domain. Another thing is, I didn't realize there's much of a difference between www.website.com and just website.com, so the one I bought was just website.com. Now I have no idea how to redirect both of them to the www one.
For the CNAME I entered in gandi in expert mode www 10800 myapp-someappname.rhcloud.com. (with the dot at the end).
I woke up this morning, it's still not working. Also, when I go to www.website.com (Btw, website.com isn't my website, I'm just saying as an example) it just says app not found on server. When I go to just website.com, it actually takes me to gandi and says that the owner parked there or something.
So, what's the difference, and why does it say that?
How do I just SIMPLY get my website to work? I hosted it on openshift, have the CNAME, and at gandi I bought a .com domain with NO www in the front, so I don't know much about that. How do I just simply get this to work? I am so frustrated.
Here's a similar question regarding Heroku instead of Openshift, but you might easily be lost in the detailed configuration.
To simplify things, I'd recommend using Cloudflare, a Content Delivery Network, which is what I use.
Follow these steps to set it up: How to Use a CDN with Your OpenShift Application

Redirect subdomain on CloudFlare to Google Calendar

I want to redirect a subdomain of a domain I have on CloudFlare, to a Google Calendar (HTML/embed version).
I assumed I needed to use Page Rules to do this, which I have done by following CloudFlare’s documentation. However just following these instructions did not work for me. Apparently I need to add the subdomain to my DNS records on CloudFlare, but I don’t know how to set this up correctly since I have no server or IP to point it to (or I’m just confused as to why I need to even point it to something when I just want to forward a URL).
As mentioned I have no server to point it to – and thus can’t use a .htaccess solution – so don’t know what record type I should be using to use to just have the redirect working
I've had some success just using google.com as the CNAME record, then using a Page Rule to redirect everything on that domain. Because CloudFlare changes the DNS entry to its servers anyway (when you do the orange cloud thing) nobody will know.
I don't know if you could do that directly from cloudflare, but you can solve this using your hosting.
Point subdomain to your hosting server sub IN A 1.2.3.4 via cloudflare
Create sub.domain.com on you hosting
Place redirection script in index file in subdomain sub.domain.com document root:
<?php
header( "Location: http://docs.google.com/your-url-and-so-on" ) ;
?>
"subdomain to my DNS records on CloudFlare, but I don’t know how to set this up correctly since I have no server or IP to point it to"
This doesn't make much sense. A subdomain has to point to a record of some sort (A record or CNAME), so the subdomain wouldn't resolve without a record type of some sort. In order for a PageRule to work, two things have to happen:
The record has to be in your DNS settings.
The record has to have our proxy running over it.
It might be easier to figure out with the actual subdomain in question & what you're trying to forward to specifically.
So CloudFlare does support this through PageRules, you just need to get the URL correct.

.htaccess + subdomain + redirect

Just wanted to know how we can redirect the subdomain to domain.
I have two domain which in pointing to my rails application and a subdomain
www.xyz.com
www.xyz.info
example.xyz.com
Now when the user access www.xyz.info the example.xyz.com page should open up but the address bar should be www.xyz.info.
So is it possible to redirect?
Thanks
Abhi
One approach should be to use a reverse proxy, using mod_proxy. In the configuration of www.xyz.info put
ProxyPass / http://example.xyz.com/
However, I think it would be much easier to just deploy the rails application twice, i.e. put the configuration that you have in example.xyz.com also into www.xyz.com.

Resources