I have a wildcard subdomain setup using CPanel, and I'd like to be able to add domain that will be linked to a subdomain without the usual redirection.
So when the user go to "test1.com", I'd like him to see exactly the same as test1.mysite.com, but I want the URL in the browser to remain test1.com, test1.com/page2.html, etc..
I don't want to use Iframe.
Any solution ?
That's simple if both test1.com and test1.mysite.com are on the same cpanel account.
Click on Subdomains link in cPanel Home.
In Subdomain: field, type test1 and select mysite.com.
In the field Document Root:, type the path of the directory to which test1.com points.
Click create.
test1.mysite.com is now same as test1.com.
Hope that helps
Login to cpanel and Subdomains, in Subdomain field type your subdomain name like "demo " and choose the domain name.
In cpanel server put the Document Root: "public_html/demo"it come automatically and Click create.
And upload your files in above path public_html/demo to access your subdomain live.
Related
How do I get the following redirect to work?
The old address contains URL parameters:
olddomain.com/Index.asp?CategoryID=2379&ArticleID=6592
And needed to redirect to a regular URL under the new domain:
newdomain.com/example-page
Can I do it via mod_rewrite on on my .htaccess file? what is the correct command for this redirection?
I will need to do that for each page under the old domain (the target URL under the new domain will be different for each page)
Actually nothing, the only solution I found was to redirect the entire domain to the new domain, without redirecting each page to it's target.
On my website, I am trying to make static.domain.com but every page on the subdomain keeps redirecting to www.static.domain.com, I am using cPanel. I don't want the www. on the subdomain, what do I do?
Could you please follow the below steps to create a subdomain
Log into your cPanel
Go to the Domains section and click on Subdomains.
Type in the name of the subdomain and select the domain to create it under. It will automatically create a folder for the subdomain in your public_html folder
Click the Create button. You will then see a message stating it "has been created."
IF you still facing the error could you please conact your hosting provider.
I want to point one domain to another existing domain.
For example I have the following two domains:
test1.com
test2.com
Now suppose I have done hosting for test2.com. But now I want that if I open test1.com, that it should open the same content/pages which are displayed in test2.com. I do not want to redirect from test1.com to test2.com. URL should be same as it is i.e test1.com. Is this possible?
I have cpanel hosting.
Please add an url redirect record from your cpanel.
Record-
First domain will be forwarded to second domain.
You can just add the second domain name as parked from cPanel -> Parked domains. It will achieve what you are trying to do:
https://documentation.cpanel.net/display/ALD/Park+a+Domain
Please note however that if you are running WordPress for example, as it is a URL dependable application, it might rewrite your URL.
I have a website running on Apache. The address is http://helpdesk.example.com/otrs/customer.pl
I would like to create a forward such that if I access http://helpdesk.example.com/otrs/anyname (except customer.pl) this redirects to http://helpdesk.example.com/otrs/customer.pl
Also I'd like to not show the path of the website in the URL:
http://helpdesk.example.com/otrs/customer.pl displayed as http://helpdesk.example.com/
Thanks you for help!
There is a list of options in my website home page - for example, http://example.com. When a user clicks on option1, I want to show the URL as http://option1.example.com and not http://example.com/xyz.php?opt=option1. Any help or guidance would be appreciated.
You will either need to create a subdomain for each option and then provide the required code at that subdomain. how you set that up varies by hosting provider.
Do you really need a seperate subdomain per option?
Could you use http://abc.ca/Option1/ or http://abc.ca/Options/1/ instead?
If not you will need to contact your hosting providers about creating subdomains option1.abc.ca etc and where to put your php pages.
If you are hosting your own server with apache, I think it is possible to use a * dns entry to accept all subdomains and then you can use $_SERVER variables to get the domain being requested.