I am migrating my WP website from staging to production and I have a problem with Dashboard access.
When I try to access
http://<domain>/wp-admin.php
it redirects me to
http://./wp-login.php?redirect_to=http%3A%2F%2F<domain>%2Fwp-admin%2F&reauth=1
I can login with going directly to http://<domain>/wp-login.php
and I can go to any Dashboard page but cannot change anything (with Save button) without redirecting to http://./wp-admin/…
.
For example, if I want to change post content,
http://./wp-admin/post.php?post=20&action=edit&message=1
.The same problem is with changing Permalinks settings.
So what is broken: there is a dot .
instead of my domain in redirect URIs.
Maybe it is because of cyrillic одиссейдом.рф
domain?
Have I add some rewrite rules to fix it?
UPD:
I saved a page, go back, save again and there is no problem.
Then I tried to change site title in Settings/General and there is no problem too.
Then I tried to turn off Emoticons in Settings/Writing and there is no problem.
But activating/deactivating a plugin goes with problem.
I have no idea, my friends.
I am migrating my WP website from staging to production and I have a problem with Dashboard access.
When I try to access
http://<domain>/wp-admin.php
it redirects me to
http://./wp-login.php?redirect_to=http%3A%2F%2F<domain>%2Fwp-admin%2F&reauth=1
I can login with going directly to http://<domain>/wp-login.php
and I can go to any Dashboard page but cannot change anything (with Save button) without redirecting to http://./wp-admin/…
.
For example, if I want to change post content,
http://./wp-admin/post.php?post=20&action=edit&message=1
.The same problem is with changing Permalinks settings.
So what is broken: there is a dot .
instead of my domain in redirect URIs.
Maybe it is because of cyrillic одиссейдом.рф
domain?
Have I add some rewrite rules to fix it?
UPD:
I saved a page, go back, save again and there is no problem.
Then I tried to change site title in Settings/General and there is no problem too.
Then I tried to turn off Emoticons in Settings/Writing and there is no problem.
But activating/deactivating a plugin goes with problem.
I have no idea, my friends.
Possible solution: * go to permalinks under settings and check URL structure with your desired domain name. Even if the URL seems to be right, click the desired structure and save. This was handy while i migrated 2 websites. or * look for "wp_options" table in your database. You will find "siteurl" & "baseurl" row. Check if they are the right one.
Optional: search the whole database for the right URL.
I advise you to:
You can also add the following lines of code to the wp-config.php file:
Define('WP_SITEURL','http://your-site-url');
Define('WP_HOME','http://your-site-url');
Can you access :
http://example/wp-admin/options-permalink.php
If you can try to change the option and reselect the same one and save
I had same issue for me even admin as not loading, My db had correct site url and home.
The solution which worked for me is, adding following lines in wp-config:
define('WP_HOME', YOUR_SITE_URL);
define('WP_SITEURL', YOUR_SITE_URL);