wordpress wp-login.php?redirect_to wrong path - wordpress

This is a weird one. I googled for hours but seems to me not a single person has this same issue.
I moved my website from http://www.domain1.com/wpfolder to http://www.domain2.com . Everything works fine except I cannot get the "wp-login.php?redirect_to" path to point to the correct url.
WordPress keeps setting it to:
"wp-login.php?redirect_to=http://www.domain2.com/wpfolder/wp-admin&reauth=1"
It should be setting it to:
"wp-login.php?redirect_to=http://www.domain2.com/wp-admin&reauth=1"
The "wpfolder" doesn't exist anymore..
I followed the instructions exactly on how to move a WordPress website, but the darn URL won't change...
Some forum mentioned changing the "site_url" and "home" from "http://www.domain2.com" to "http://domain2.com". Now I can finally get to the admin panel, but I don't get why it needs to be that way?
I cleaned my browser cookies and checked the wp-content folder for cache already. Nada..
Also the rest of the site is functional.
I would appreciate if anyone can help.

I moved the WordPress website from GoDaddy to Bluehost by copying the files and the database and the problem went away. I am not sure why this fixed it, but assuming it has something do with the cache.
If anybody has more information, I would love to read about it.
Thanks

I was facing the same issue, with same redirection to one of the sub-directory in which wordpress was installed.
Resolved this issue, by clearing the cache, if some cache plugin is active.
Or by deleting the cache plugin if any present and is currently not yet active.
As some entries made by cache plugin inside wp-config.php file creates the above mentioned problem.
After removing the cache plugin, it resolves the WP-admin URL issues.

Related

WordPress Images not loading after migration

I'm facing a problem the last couple of days and I can't figure it out. We changed the hosting company and move our website (same domain name) to another hosting provider. After migration, images not loading, and I can see them broken in WordPress's Media Library.
I tried to change the permissions in the upload folder but that didn't worked. SSL is also working as expected. I disabled all the plugins and even changed the theme, but the problem still persists. I re-uploaded all the backup files again to make sure that I wasn't missing something, but the problem haven't been solved.
I also have the support team from the hosting provider that works on the website, but there's been 2 days now and they can't find a way to solve the issue.
In the browser's Search Console I do see the following errors: https://ibb.co/y0KCmHY
I've also checked the DNS settings in CloudFlare to make sure that I have setup everything correctly.
Any help will be much appreciated!
I am no wordpress expert but I think I would first check whether image files in your backup files are not damaged/corrupted.
I would check both your backup files and image files in your new hosting server
(download image files from your new hosting server via FTP)
Sorry I couldn't help you much except where to look at first which you might already know.
From the image that you've provided, what I can tell the status is 404 like you know which means your image is not found. Something wrong with all your image URL. You need to make sure the URL is correct for each image you have.

Wordpress: redirecting to wp-admin/install.php even after reinstalling backup of a version that for sure worked

I'm having major difficulties to regaining access to my wordpress website (was online for 2 years) and to admin login of wordpress. I've been searching for quite a while now to resolve this issue.
I constantly got the too many redirect error and my browser was always redirected to wp-admin/install.php.
I already tried the common solutions:
Clear Your Cache and Cookies of browser,
disable .htaccess,
disable all plugins,
disable theme,
adapt wp-config.php:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Check/restore tables of database;
Check wp_options table (did not find a table wp_options (or similar named) in my database)
Nothing worked, in the end I tried the solution to reinstall my website with an old backup (generated from Duplicator – WordPress Migration Plugin) I generated in May. This issue only occurs since a few days so the backup version of the website was certainly a proper working one.
Unfortunately still the same issue appears, the websites keeps redirecting to wp-admin/install.php.
Anyone who has an idea what the solution could be?
Thanks in advance & kind regards!

One page won't show on wordpress after moving from live to localhost

I moved my website from live to localhost to make some modifications to it and I have encountered a problem, one page will not show up: "Oops! That page can’t be found.".
I have tried the following
1. activated rewrite_module
2. deactivated each plugin to see if anyone is causing the problem
3. recopied the database and files in case of failure during the first transfer
4. read that resetting permalinks might solve the problem. Changed permalinks to default - the page now works, but when I changed back to custom the problem is still there.
This is weird because only one page does not seem to show, every other page works fine and also there is no problem on the live version.
I ran out of solutions can any one please help?
This may be caused by the permalink or .htaccess
check the url of your page if no issues on URL then
Follow this steps once:
Go to settings-> permalink-> set it as default ->Reload or refresh
Then again now Go to settings-> permalink->postname
Your .htaccess will get update with the permalink.
This could be a problem with htaccess. When using the query string urls in wordpress, no htaccess is required, but for anything else Wordpress uses mod_rewrite.
Is htaccess turned on your localhost Apache server? In httpd.conf, AllowOverride All should be turned on in your active directory.
Is Wordpress able to create new files? Insufficient permissions might prevent it from creating the htaccess file.
Finally, check that your links are pointing to the right place. Sometimes the problem is as simple as a misspelling in your link ;) Good luck.

Wordpress site stuck in maintenance mode

I can't figure out why my wp site is stuck in maintenance mode. I made no update and there's no .maintenance file. I can't even access to admin.
Has anyone encountered similar issue?
Try renaming the plugins/ folder to _plugins/ and see if you can access your website, if you can, rename the plugins folder to plugins/. Try disabling every plugin and re-enabling the plugin until your site breaks again to find the culprit.
If you can't access your website after renaming the plugins folder, disable your theme (by renaming the folder).
These are the common troubleshooting steps, if you provide more details, I will be able to help you more :/
Finally got it, it was a domain redirection error. The url pointed to a folder with a default index.html.
If anyone is still having this problem in 2017, I fixed it by going to my /wp-content/endurance-page-cache and deleting two files called _index.html and a_index.html (to be safe, I would download these first so that if this ISN'T the issue you can still recover them). This is what my domain was redirecting to.
Before I figured it out, I deactivated the WP Maintenance Mode plugin, looked through the directory for a .maintenance file (which I didn't find even after showing hidden files), and completely deleted the plugin. So hopefully if anyone is having this issue, this will work for you!

wordpress - all pages are blank except the home page

My site works fine. I have a development copy that was working fine but now all pages apart from the home page are blank. The files are identical on both servers, apart from the wp-config.php and the .htaccess files. I tried removing the theme and the plugin folders to no avail. I'm lost now! What am I missing?
Well, after hours and hours, changing the permalinks to 'default' and then back to the right setting (in my case Post name) solved my problem.
I hope this helps someone in the future.
I still don't know why I get a strange ABSPATH error message though.
I had the exact same problem working on a website hosted at Bluehost. Everything beyond homepage was white.
The solution was to move the contents of my sub-directory into /public_html.
Despite this article to the contrary (https://my.bluehost.com/hosting/help/347), Bluehost support told me the primary domain cannot be run from a sub-directory.

Resources