I want to point a subdomain such as:
example.domain.com
to a URL like:
domain.com/something/this.php
How can I do this in Plesk?
Depending on how your scripts work, you can take one of two paths:
Add Domain, name it example.domain.com (yes, it will use one item of your domains limit), choose Redirect for Hosting Type and type target address there.
Add Subdomain and point its docroot folder to /{domain.com docroot}/something/ folder. So this.php will be accessed as example.domain.com/this.php and that.php as example.domain.com/that.php
Related
so my issue is as follows:
I have a website, on one language pointing to a site subdomain.domain.com. I added CNAME records and it points perfectly. I now have another squarespace page that is the clone of the other one, only in a different language. Is there a way to point it to subdomain.domain.com/en , for example, and how would one go about doing this thru squarespace and my hosting sites webmin.
You can't use same subdomain for more than once. But as you own, and have access to that domain you can make different subdomain. So it can be: subdomain.domain.com and ensubdomain.domain.com or even you can have subdomain of subdomain en.subdomain.domain.com. You are probably aware where it goes. You can have something like: you.can.go.as.far.as.you.need.or.you.want.domain.com. ( be aware that you need to check with host first, what is included in your package or maybe do you have some limits)
It's hard to explain, I would like to do something like below but I don't know how.
I currently own two different domain names and have one website.
Can I have two domains pointing to the same website but the URL only shows whatever domain is entered in the first place?
For example, when I type in 'domain123.com', it takes me to my website (IP address 111.222.333) with the URL shown as 'domain123.com'. Then when I type in 'domainABC.com', it also takes me to the same website (IP address 111.222.333), but the URL needs to show 'domainABC.com' instead of 'domain123.com'.
I guess I will need to redirect one of the two domains to the website, but how can I stop the URL changes the domain name?
I am not sure if I can just modify .htaccess to achieve above or if I also need to change the DNS, etc. to make this work.
Please help and many thanks
It depends on your setup and your server permissions.
A nice way will be to change the docroot in the apache or nginx config.
If you don't have permissions to edit these configs, you can create a symbolic links so that the public folder of domain2 points to the public folder of domain1
I want to be able to install a Prestashop in multi-shop mode on a dedicated Plesk server, with two aliases of different domains.
The first (shop.domain1.fr) would be the host of prestahsop, but I do not see at all how to connect the second domain alias (shop.domain2.fr) to the hosting of the first.
Do you have any links or tracks i could use ?
Thank you !
You must park second domain or sub-domain in first one. It means that both of them must have same DocumentRoot. When you create a subdomain, change DocumnetRoot to shop folder.
See crate a subdomain section in this link:
https://www.pickaweb.co.uk/kb/create-addon-sub-parked-with-plesk/
I have purchased My Domain name from one registrar & hosted in another hosting company.
I have created a sub domain from my hosting domain manager lie http://subdomain.domain.com and it works fine. But when someone types in www.subdomain.domain.com the site is not working.
Do I need to make changes in my DNS Manager of hosting CPanel or DNS Manager of my Domain CPanel?
Also What all Records I need to add ( like A Record or CNAME) to redirect www.subdomain.domain.com to subdomain.domain.com.
I don't want to see www for my subdomain, but only wants to get redirected to subdomain.domain.com.
It doesn't work because www.subdomain.domain.com doesn't exist. You have to add a CNAME record in your zone subdomain.domain.com the same way you've added the host subdomain to domain.com.
You need to register that subdomin too.
Yes - www.subdomain.domain.com is a subdomin of subdomain.domain.com. There is nothing special about the www prefix, as far as the domain system or browsers are concerned.
This helped me out. I hope it helps anyone going through the same thing.
Yes, as you said CNAME record www for customer1.mysite.com will report an error.
To make it working, you should be able to add CNAME record www.customer1 for mysite.com instead of www for customer1.mysite.com - xMudrii https://www.digitalocean.com/community/questions/how-to-configure-subdomains-to-use-www-and-non-www
Create CNAME as sub.domain.
Point to # where sub.domain is your subdomain name and maindomain name.
If you want to add "www" in the subdomain then create the same configuration subdomain and add "www" in that domain.
you required to add both domains name www.subdomain.domain.com and subdomain.domain.com
Say you have a website www.example.com and you want to have a working link like www.service.example.com, then you need to enter the subdomain name www.service (and not service) while setting up the sub-domain.
Preferably set up both sub-domains i.e. www.service and service for users who type in www.service.example.com and service.example.com on their browsers.
We're looking at running bigcommerce for a website and they have the ability to run the store using your primary domain url (which we don't want to do) or a subdomain. We wanted to have for eg: http://www.ourwebsite.com/shop.
Bigcommerce doesn't have the capability of us running it on a subdirectory, aside from a subdomain.
Can we with dns records point our subdirectory as above to load contents from our subdomain? If so, how?
ie: http://shop.ourwebsite.com/ contents displayed on http://www.ourwebsite.com/shop
We also have to use cname records to make our shop.ourwebsite.com subdomain load the contents from bigcommerce (I assume this is how it's done using your own url rather than their own yoururl.bigcommerce.com url).
We need to ensure this can still remain in place and it doesn't affect the above change we require.
Thanks!
You can:
Use mod_proxy this way your url stays the same (available through mod_rewirte [P] flag).
Redirect to your subdomain (html-meta, htaccess/http reply 301/302, frameset/iframe which is really ugly)
But with pure DNS, it's not possible.
CNAME DNS entries are just aliases for other domains, but can't handle directory structures.