You should create a VirtualHost for your registered domain and define c:/xampp/htdocs/realheroes as DocumentRoot. After then install Wordpress already using the registered domain name. Do not install WordPress via localhost/realheroes, delete it if already installed. Otherwise it wont run via registered domain name.
P.S.:
Neuner wrote:I only have and will only have the one website running locally. I've tried setting it up Virtually as instructed but it only messes it up and I wind up having to re-install everything again.
"Only one"? Sure? Most people forget about "localhost"?! Wont you run local administration via localhost? Therefore, you need at least two VirtualHosts (localhost plus your new domain). And its the way to go. If you "messed" it up, you did something wrong, but you should correct it instead of not using it.
If you dont want to use VirtualHosts, you have to edit index.php from c:/xampp/htdocs, which does the redirect to the dashboard. Modify the code that it redirects to realheroes in case of your domain name instead of localhost. BUT: your WordPress will show up under
http://mydomain/realheroes (where mydomain is the new domainname), it will NOT run unter
http://mydomain plainly. (i.e. you can start it via
http://mydomain, but it will redirect and change the URL to
http://mydomain/realheroes). Its on you what you want. If you want to display and run WordPress via
http://mydomain (not showing the foldername realheroes), you MUST modify the DocumentRoot and as you need a different DocumentRoot for localhost, you have to go via VirtualHosts. Its on you.
Anyway, you have to re-install everything after changing the Apache configuration. You CANNOT install WordPress into localhost, change the configuration (whichever way you go) and then run WordPress via the newly implemented domain name. That does not work. WordPress will do a redirect to
http://localhost/realheroes, which will fail for remote clients.