permalinks - My WP homepage works, but the other pages don't when accessing from out side of my network

admin2025-01-08  4

So, I host my WordPress website on my PC. 192.168.1.5:25566 (port forward). On my LAN, I can access homepage and other pages on the site. But from outside the LAN, I can access homepage but cannot access other pages on the site. I suspect this is due to the links to the other page being 192.168.1.5:25566/page2, as 192.168.1.5:25566 is set in Settings>General.

So, I put my WordPress site address in Settings>General to 80.90.484.594(my public IP, not my real public IP cuz I ain't giving that out). After I do this, WordPress site and all it's pages can be accessed from outside the LAN but not inside the LAN. I thought I set my Apache server to listen to 192.168.1.5:25566 but somehow WordPress, which AFAIK runs on Apache, cannot be accessed from my LAN. Is there a way to access all pages from the outside network as well as inside?

So, I host my WordPress website on my PC. 192.168.1.5:25566 (port forward). On my LAN, I can access homepage and other pages on the site. But from outside the LAN, I can access homepage but cannot access other pages on the site. I suspect this is due to the links to the other page being 192.168.1.5:25566/page2, as 192.168.1.5:25566 is set in Settings>General.

So, I put my WordPress site address in Settings>General to 80.90.484.594(my public IP, not my real public IP cuz I ain't giving that out). After I do this, WordPress site and all it's pages can be accessed from outside the LAN but not inside the LAN. I thought I set my Apache server to listen to 192.168.1.5:25566 but somehow WordPress, which AFAIK runs on Apache, cannot be accessed from my LAN. Is there a way to access all pages from the outside network as well as inside?

Share Improve this question edited Apr 18, 2020 at 21:15 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Apr 18, 2020 at 17:40 lpydawalpydawa 1012 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I would say your best bet would be too keep your wordpress with the external IP and edit your hosts file inside the lan so your internal IP resolves to the external. I don't see a way of having 2 different urls for a single WP install.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736267864a1228.html

最新回复(0)