Hello,
I will talk to you what’s happening to me, although maybe this is no the best place to ask for it. But I suppose this thing can happen to other DietPI users installing WordPress, so I will share with you all my trouble.
I’ve installed Wordpress. Perfect. I love the DietPI installer, so fast and easy
I’ve configured NoIP, perfect.
I’ve opened the port 80 of my router, to be able to go into my Wordpress from the outside of my local network using my NoIP domain xxxxx.ddns.net, perfect.
But now I have a trouble… let’s explain the story
First of all, WP was configured
wp_options → site url → 192.168.1.13 (local network address), so it only worked from local, and I couldn’t go into it from “the outside”, using xxxxx.ddns.net/wordpress
To solve this (to be able to go into WP from “the outside” using domain name), I changed it editing WP database and set wp_options → site url → xxxxx.ddns.net
Done this, WP is accessible from the outside, but when I try to go into it from my local network the blog is shown in plain mode, only text, and when I try to login to edit it going to my local IP 192.168.1.13/wordpress/wp-login.php, it jumps to xxxxx.ddns.net/wordpress/wp-login.php, I can type user and password, but I get:
404 Not Found
File not found.
micro_httpd
I’ve been digging into WP forums and googling a lot, and they say to change the hosts file, and some other things… but I haven’t been able to solve the trouble with this information.
Maybe do I have to do some port forwarding of whatever on my ADSL modem-router? Or does WP have an option to tell it I want to access from “both” sides, from the Internet and from local network?
If you can help me, thank you very much, I’ll appreciate a lot every information you can give me about this. Maybe you have lived this same situation and you remember how you solved it?
Thanks!