By entrepidea
hello all:
I purchased a domain name from another vendor, say the domain name is: mynewproduct.com, now I want to map it to a sub folder of my site, say, mysite.com/mynewproduct, how can I manage to do it?
as of now, when I type in “mynewproduct.com” it shows: “Could not determine user from environment”
thanks, Jon
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
First you will want to point your new domain name to your droplet’s IP address.
Then you’ll want to set up a virtualhost entry for the new domain pointing it to the directory you want.
Once these two things are done you should be all set. You may need to change the paths in some of your files as when using your new domain the files would be located at mynewproduct.com rather than mysite.com/mynewproduct
thanks ryanpq. I followed the steps you suggested, and when I type in mynewproduct.com, i got this: The requested URL /cgi-sys/defaultwebpage.cgi was not found on this server. I guess that’s because I didn’t do what you said “You may need to change the paths in some of your files as when using your new domain the files would be located at mynewproduct.com rather than mysite.com/mynewproduct”
However, if I just want to simply re-direct to mysite.com/mynewproduct when typing in in browser: http://mynewproduct.com, what should I do? maybe I just need to update .htaccess with a re-direct?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.