I've set up a local server running XAMPP. Localhost is working for the server, and I've forwarded port 80
on our router to allow for incoming connections. This also works. So I can now access my hosted webpage through the IP adress of our external IP.
We already have a domain hosted, and cPanel installed on another server that the domain is managed by (this is not our server, it's a paid hosting solution).
How do I set up cPanel so that I can "redirect" subdomain folio.site.com
to the locally hosted website?
Simply creating a subdomain and a forwarder will forward the user to the correct place, but then the URL changes to the IP adress, which does not look pretty.
I simply want the URL to stay at folio.site.com
while in the root there, and if you navigate to another page there (for example /projects.php
) then the URL would read this: folio.site.com/projects.php
I guess this is what A
records or CNAME
records do? But I cant get it to work. Or I don't really understand it =)
Thanks for any help! =D