Hi there,
After I pointed my domain spieltagsgedichte.de to a github.io server I would expect that I can still access the Wordpress admin area via http://[public IP]/wp-admin. However, that takes me to https://spieltagsgedichte.de/wp-admin. I didn’t find any redirect or A record or CNAME that points to the public IP. What can I do to be able to access my Wordpress admin area?
Many thanks
Felix
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hey @felixwenzel73,
The behavior you’re seeing is likely due to the way WordPress is configured. When you installed WordPress, it saved the URL of your site (in this case, spieltagsgedichte.de) in its database. WordPress uses this URL to generate links and redirect traffic. So when you try to access your WordPress admin area via the IP address, WordPress redirects you to the URL it has stored in its database, hence why you end up at https://spieltagsgedichte.de/wp-admin.
If you want to access your WordPress admin via the IP address, you’ll need to temporarily change the site URL in the WordPress database.
Please follow the steps below:
wp_options
table.siteurl
andhome
in theoption_name
column.option_value
of bothsiteurl
andhome
fromhttps://spieltagsgedichte.de
tohttp://[public IP]
.Alternatively, you can use wp-cli. WP-CLI is a command line interface for WordPress which is a much safer and recommended way to make such changes. You can check their website to install the tool first, https://wp-cli.org/
and then to use it, navigate to the WordPress installation directory ==> Use WP-CLI to update the
siteurl
andhome
options. Replace[public IP]
with your actual public IP: