i am having a problem with my Wordpress instalation when i try to see my localhost in other computer inside the same network with the ip 192.168.1.201.
For example the code resolves in both browsers as:
And the PC in the network that don´t have those files in localhost, it doesn´t load the resources.
How can i fix this to both in internal LAN? Any kind of redirect ?
Thanks
I don't fully understand your question. If you want to browse your localhost site from other computers on same IP, you should use
http://yourcomputername/wordpress_site/
"yourcomputername" is where you installed the wamp / xampp
Also You should have to change WordPress Address (URL) and Site Address (URL) to
http://yourcomputername/wordpress_site/
In wordpress Settings > General
http://localhost
will only work on the computer where you installed wamp
Related
I created a Windows 2016 Base EC2 Instance and installed IIS on it. But soon realized that I have to run WAMP to host PHP sites so I installed WAMP and stopped IIS service and everything was working fine.
Then I made a few changes to the site (It's a Wordpress site) and published it and since then the public IP is showing IIS page.
I have tried renamed iisstart.html to iisstart (to trick system into
thinking the file doesn't exist) from IIS folder but the public IP
is still showing IIS page.
I have tried restarting the instance machine. Localhost is showing my wordpress site but public/elastic IP shows IIS.
I have tried restarting WAMP, no luck.
I don't know how is it possible that IIS page is shown even when the file is renamed.
I have tried creating an Elastic IP as well but didn't worked.
Ok! So the issue is fixed! Now posting solution for anyone who will reach here (maybe my future self)
There was no issue with AWS EC2 or WAMP. The issue was in importing Wordpress.
When I imported Wordpress the Site Address and Wordpress Address changed to localhost. Due to which the IP was redirecting to localhost of destination machine.
Solution:
After you import your Wordpress, goto wp-admin -> Settings (in Side Bar)
And change the Site Address and Wordpress Address to the public/elastic IP of your instance.
Then clear Cache/Cookie on your destination machine and revisit the IP. It should work. (It did in my case)
So I have a problem and I do not really think it has anything to do with the apache2 settings.
I have installed a wordpress website on my local server computer.
Now, I can acces phpmyadmin and anything BUT the wordpress websites.
This ofcourse makes me think its WORDPRESS and not the webservers fault.
Permalinks in wordpress are set to www.mydomain.com
Im trying to load the website from: 192.168... Localhost and my external IP. but it just sits there loading.
And when I try to acces the website from my phone/outside the local networks, the website works completely fine!
I have been working on the website for a while now and I can't really do a re-install.
Anyone know what could cause this problem?
I'm trying to do work from a few computers at once, but the Wordpress installation on my main PC doesn't work from another two, they load it but with no JS or CSS when connecting via IP, check inspecting element on Chrome it's pointing them to localhost/.
Is there a workaround for this?
Go to wp-admin > settings to check WordPress Address (URL) & Site Address (URL) directly point to you IP address. You probably set localhost before.
I installed last version of xampp 1.8.0 in a win 7 pc. I use apache, mysql and wordpress 3.4.2
I buit a new web site on htdocs and all work good locally (as a localhost , 192.168.1.10).
But when I try to access from another pc on the lan to 192.168.1.10 my web site it only shows a homepage without images and all path have link to localhost instead to 192.168.1.10.
Can anyone help me to resolve this issue ? what luck to my configuration ?
In your wordpress admin dashboard, make sure under "General Settings", the Site Address (URL) and WordPress Address (URL) both say "192.168.1.10" instead of "localhost".
I successfully set-up Drupal Multisites with:
site1.domain.com
site2.domain.com
site3.domain.com
using Virtualhosts and editing the etc/hosts with MAMP on my localhost. I then deployed it using SVN (it deploys automatically) on the live site.
The Problem: when I type "Site1.domain.com" because it goes to my localhost instead of my live site. Is there anyway to avoid this? (apart from renaming the subdomain, because it speeds up deployment)
Just check your virtual host settings in httpd.conf file, are you using IP address to redirect them?
And if its directing to your localhost, just check your host file, if might be redirecting because of that