Xampp, Virtual Hosts & WordPress URL
-
Hi,
I have just set up Apache so that my WordPress site can run on a virtual host. In the httpd_vhosts.conf file I placed:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/xampp/htdocs/mysite" ServerName www.mysite.net ServerAlias mysite.net mysite ErrorLog "logs/mysite-error.log" CustomLog "logs/mysite-access.log" common </VirtualHost>
And in the Windows (XP) hosts file I placed:
127.0.0.1 localhost 127.0.0.1 www.mysite.net 127.0.0.1 mysite.net 127.0.0.1 mysite
It all works fine, i.e. I put in https://www.mysite.net, mysite.net or mysite and I am taken to my WordPress site. However, when I click to read a post, the URL displays https://localhost/mysite/my-post/ rather than simply https://mysite/my-post/. Is there something additional I need to do so that all of the locations in the site will display without having localhost in the URL?
Cheers for any help.
EDIT: Just realised I was being silly. The option to change this is in the general settings!
- The topic ‘Xampp, Virtual Hosts & WordPress URL’ is closed to new replies.