I can’t log in to `wp-admin` after changing my domain

I created a website using wordpress. I decided to change my domain and bought it using the website: https://www.aftermarket.pl/

After buying a domain in the wordpress panel, I took the following steps:

  1. Log in to WordPress
  2. Click on the Settings menu.
  3. Select General.
  4. Update these fields with the new domain name:
  5. Click Save Changes.

after following these steps I cannot log in to wp-admin. Entering through the old domain – oldsite.com redirects me to newsite.com where I can only see File not found.

/wp-admin not accessible after migrating to local host (no plugin issue)

I migrated my local WordPress site to my WPEngine account and it’s been working without any problem!

After adding some content, I decided to export the database from the live version and import it to my local version so that they are synced. I adjusted the two siteurl and home fields in the database and the home page (https://localhost:8888) comes up well but the /wp-admin page is forced to https and responds with ERR_SSL_PROTOCOL_ERROR error.

All the other pages of the website cannot be loaded and return this error: Not Found The requested URL /news was not found on this server.

It seems like a "permalinks" reset problem for inner pages!

All these problems would go away if I switch the database back to the one I was using for local version so I’m pretty sure it’s a database issue!

Thanks

“File not found.” appears often while navigating wp-admin

I’ve been experiencing this issue with this specific website quite often. I moved it from a staging domain to the production domain and since it’s been doing this. It did not do this on the staging domain (same server).

  1. I did a find and replace on the database to ensure that the staging domain was replaced with the production domain.
  2. I have flushed the permalinks.
  3. I have increased PHP memory for this site

I can’t point to a specific plugin. I’ve used these plugin before on many sites. Everything is up to date. I have not found a pattern to when it appears. If I click between the Posts, Media and Page tabs often enough it eventually happens. I also happens when interacting with the plugins section of the site.

After it has happened a refresh of the page brings it back.

Here are examples: enter image description here

enter image description here

enter image description here

I get redirected too many times only in wp-admin?

I am trying to run wordpress in a subdirectory blog in my rails app, I used this nginx config as:

server {     listen 80;     server_name _;    passenger_ruby /usr/local/bin/ruby;   passenger_enabled on;   rails_env production;   location ^~ /assets/ { root /var/www/example/current/public;     gzip_static on;     expires max;     add_header Cache-Control public;    }  location /blog {   root /var/www/example/current;   index  index.html index.htm index.php;   try_files $  uri $  uri/ /index.php?$  args;    location ~ \.php$   {     fastcgi_pass unix:/run/php/php7.2-fpm.sock;     fastcgi_index index.php;     fastcgi_param SCRIPT_FILENAME $  document_root$  fastcgi_script_name;     include fastcgi_params;   } }  } 

My folders looks like this:

/rails_app/ /rails_app/blog/ /rails_app/blog/wp-admin/ 

where blog directory has wordpress files I don’t have any route starts with blog at rails app.

There is no redirect loop for frontend, but only at wp-admin

here in my wp-config.php I have:

define('WP_HOME','https://example.com/blog'); define('WP_SITEURL','https://example.com/blog');  $  _SERVER['HTTPS']='on'; define('FORCE_SSL_ADMIN', true); define('FORCE_SSL_LOGIN', true);  

any idea? how to debug this issue?

Multisite wp-admin redirecting to main wp-admin using NGINX

When I try to go to the wp-admin of any multi site, it redirects to the main wp-admin.

So if I go to example.com/multi-site-slug/wp-admin/ it redirects to example.com/wp-admin/

NGINX is being used as a reverse proxy.

I’m using the standard WordPress Multisite Subdirectory rules per the codex: https://wordpress.org/support/article/nginx/

If I take out this line in the conf file rewrite ^(/[^/]+)?(/wp-.*) $ 2 last;, it prevents the redirect but then media assets don’t serve properly on the multisites.

Can’t access wp-admin from my host

I’ve set up a VirtualBox Ubuntu VM with LAMP and installed WordPress on it. From inside the VM, I can reach all of the wordpress site from the browser without problem. But when entering the VM’s address in the host machine’s browser, I get only the html without the css styling, and when adding /wp-admin, I get the “Unable to connect Firefox can’t establish a connection to the server at localhost.” By the way, I’m using a bridged connection between the guest and host.