I am trying to make my localhost WordPress website live. I have purchased domain names from Hostgator.com
but I don't want the hosting. I want my local server which is XAMPP
, to host my WordPress website and I want my test domain, which is ,for example, test.example.com
. So, what exactly I need to do to point to my XAMPP server site? For example, I have my WordPress site on localhost/wordpress
,
Looking forward to the great responses.
What you're trying to do is exposing your localhost to the web. This is not a good idea due to multiple security reasons but if you really want to do it, you can use ngrok or pagekite. The free versions would give you a randomly assigned sub-domain of ngrok/pagekite, whichever service you are using.
Then, you can setup a CName record to map your subdomain to the pagekite/ngrok domain in your domain provider's DNS Manager.