Okay, let me explain better.
I can go to my site on my localhost machine like this: [noparse]http://www.mysite.com[/noparse]
It’s set up on my machine like that, not [noparse]http://localhost[/noparse] (I read to set it up that way to make sure all the links created for the site would be transferable when going live.) If I go to [noparse]http://localhost[/noparse] I’ll go to my Wamp administration panel.
I thought I might have to remove the code out of my local “host” file i.e. C:\Windows\System32\drivers\etc\host.conf
Here’s what I have in the host.conf file:
::1 localhost
127.0.0.1 localhost mysite.local
127.0.0.1 mysite
127.0.0.1 mysite.com
127.0.0.1 [noparse]www.mysite.com[/noparse]
127.0.0.1 postmaster.mysite.com
127.0.0.1 admin.mysite.com
127.0.0.1 mail.mysite.com
127.0.0.1 care.mysite.com
127.0.0.1 webmaster.mysite.com
In my Wamp Server set up I have this:
<VirtualHost *:80>
ServerAdmin [noparse]admin@mymysite.com[/noparse]
ServerName [noparse]www.mymysite.com[/noparse]
ServerAlias [noparse]www.mymysite.com[/noparse]
DocumentRoot C:/Windows/HOST/wamp/www/www.mymysite.com
ErrorLog “logs/error.log”
CustomLog “logs/access.log” common
<Directory “C:/Windows/HOST/wamp/www/www.mymysite.com/”>
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
As you can see I’m set up to host the site on my localhost machine. I changed my mind about that!
But it helps making sure the links are correct in the site thou.
Now I want to upload the site to another non-localhost.
But I want to keep my set up here because it works so well and I know the links created will work. If I put mysite name into my browser it will take me to my localhost machine (I think because of my host file).
My problem seems to be how to go to my site on this “localhost” machine (when I want to) when I want to work on my site here and go to my non-localhost to set up everything else. I would like to switch between both. That would be ideal.
It looks to me like I’m going to have to remove to code out of my host.conf file, refresh windows memory, and maybe even do something about the Wamp VirtualHost conf file too.
I thought I could least access mysite with the ip number, but that’s not working either. But even if I could access mysite through the ip address when ever I click a link it would automatically bring me back to my localhost machine.
Know what I mean?
Thanks