Not sure this is right forum but..

I have a domain name that I have purchased

However I want this domain name to go to a particular folder on webspace that I have associated with a different domain:

Is this possible, where would I need to configure for this to happen?

Dani AI

Generated

For : serving the files that live at domainexample2.co.uk/examplefolder under a different domain is feasible. The webserver must receive requests for the new domain and be configured to serve that specific folder as the document root for that Host header. Which method to use depends on whether you can change DNS and server config, or must rely on your host's control panel.

As and suggested, first confirm what your host will allow; pointed toward host-side changes and asked for more details — the checklist below shows the concrete actions and common pitfalls.

  • Point the new domain to the same server (DNS A record or appropriate alias). Be careful: root/apex names have DNS limitations with CNAMEs.
  • On the server, create a virtual host (Apache) or server block (nginx) whose ServerName is the new domain and whose DocumentRoot is the existing folder. If you only have a control panel, add the domain as an addon/alias and set its home folder to that path.
  • Provision an SSL certificate that covers the new domain (LetsEncrypt supports this).

Common gotchas:

  • CMSs often store absolute site URLs; update site configuration so links and asset URLs match the new domain.
  • Images, CSS and JS using absolute paths may break; check base href or convert to relative paths when possible.
  • Cookies and sessions are domain-scoped; logins or state may not carry over automatically.
  • Search engines treat identical content on two domains as duplicates; use a canonical link element or choose one canonical host.

References for the technical steps: Apache virtual hosts, nginx server_name / server blocks, . If DNS or server access is restricted, file a support request with your host and reference the server-side mapping approach above.

Recommended Answers

All 5 Replies

It is possible, check the FAQ of the host,
It depends on whether the host permits it,
more than is it possible,
there may be a fee (everything has a fee)
My host ( in .ca not .uk ) allows unlimited domain names in one host, as long as the filespace and transfer is not exceeded.

but u need give us more light to how this works

but u need give us more light to how this works

No, actually I don't

read the FAQ on the Host

Yea, no point in suggesting possible solutions, they are endless, and would be a waste of everyones time. Find out what your host allows, or at a minimum, some specifics on your setup.

Most hosts have a section where you can redirect a domain to somewhere else.

Otherwise look up your htaccess file and do a permanent 301 redirect

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.