Wordpress 404 error on domain.com/wp-admin - wordpress

My WordPress site having issue so not able to reach out to the domain.com/wp-admin, it's redirect to 404 error. I have been tried out for delete ".htaccess" file however it's not working.Cache and cookies of the browser also have been clear out. Would need some advise how can I reach out to my domain.com/wp-admin.
I have been tried for using domain.com/wp-admin.php. Disable plugin however it's also not working from my end to redirect on my side

Usually, a 404 error on /wp-admin/ is caused due to missing .htaccess in your website's root directory, so first thing first, make sure that you have a valid WordPress .htaccess ( https://wordpress.org/support/article/htaccess/ ).
After that, make sure that you do not have a plugin for a custom admin login as it might also cause this behavior. If the issue still persists after that, try accessing the admin login page at: yourdomain.com/wp-login.php
If none of the above work, you should ask your hosting provider for further help.

Related

Wordpress site - too many redirects when selecting link

I have looked at similar questions but still receive the redirect error.When landing on a homepage URL the site resolves and displays for example http://www.test.co.uk . When selecting any link ie. http://www.test.co.uk/products the browser throws a "Too many redirects" error and the site become unusable. The only way I can get it back up is by clearing cookies and cache and trying again. What I find really confusing is that copying the http://www.test.co.uk/products link or manually typing the URL in resolves the URL correctly and I don't get "too many redirects" error. It only happens when I select a link.
I have tried the following:
Renamed the "plugins" directory to "plugins1" to disable the plugins
Reverted to the default wordpress ".htaccess" file
Ensure the site settings URLS matched in wp-admin area
SSL is enabled on the site but not configured to be used anywhere, all links (that I'm aware of reference http://)
Checked any redirects on the hosting via CPANEL (none exist)
Added these to the wp-config file
define ('WP_HOME','http://www.test.co.uk');
define('WP_SITEURL','http://www.test.co.uk);
I'm not sure whats changed in the last couple of days but we think a plugin got updated. Would disabling the plugins prove that its nothing to do with plugins?I'm new to WordPress so apologies if I got some terms wrong.
Any suggestions I could try looking at would be helpful.
Thanks
try to set Home url and site url to http://www.test.co.uk from your WP admin panel

Can't login on WordPress

I cannot login on WordPress all of the sudden, I tried reintalling WordPress, and the template. I also tried deativating plugins. Everything works except for the fact that I can't login.
If I use a wrong password it will notify me on that. If I use the correct one I get this page:
The page isn’t working
is currently unable to handle this request.
HTTP ERROR 500
Logs: http://prntscr.com/big4km
Htacces: http://prntscr.com/big8jm
Line 884:
$manager = WP_Session_Tokens::get_instance( $user_id );
There's a lot of problems that can give http error 500, have you tried these options?
Check directory permissions, make sure wordpress, wp-content, wp-admin, wp-includes are 755.
Try the solutions shown HERE.
Add these lines in your .htaccess:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Increase php memory limit in your php.ini file.
If it didn't work yet check your .htaccess again, make sure everything is right.
Add logs and your .htaccess file your question.
Are you able to try turning off Mod Security?
I had a similar issue - sometimes I couldn't log in, when I could I subsequently couldn't post anything and it was related to Mod Security. Unfortunately, amending .htaccess didn't work for me, nor did all of the other solutions about PHP memory or permissions, however within cPanel I had the option to turn of Mod Security per domain. I did that and haven't had a problem since. It's not ideal, but if it works for you it can be a temporary measure until you're able to work with your host to figure out why this has suddenly started happening.

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.

cPanel - send 404 to a php page?

I have an issue in a WordPress site on Hostgator where the htaccess file keeps disappearing. Before you get all, "Check your plugins, dummy" I have the same install of this site running on a completely separate Hostgator account and it's running fine. Furthermore, I have a local instance which, again, is running fine. So if it was a plugin, the issue would be replicated on the other instances, but it's not.
My suspicion is someone who has access to the hosting account is tampering with it. While that sounds paranoid, I can't rule anything out because htaccess files don't just delete themselves.
The bandaid fix has been to just reset permalinks once the site goes down. Annoying, but simple. What might be even neat would be to set my server 404 page to a php script that, when accessed, hits an endpoint I set up in WordPress to programmatically flush the rewrite rules, thus restoring the htaccess page, and then the 404 tries to forward them on again. However, the suggestions on how to do this say putting the error page definitions in the htaccess page. Which doesn't do me much good if the htaccess page is being deleted.
How stupid is this idea? Please let me know in comments.
I'm open to other solutions, but I'm waiting on my hosting support to figure out how the file is being deleted because I assume others with the account info of tampering.

Admin dashboard in wordpress 404 error

I've tried everything on the web to fix this, but when I type http://www.hotel-lopera.eu/wp-admin it doesn't open.
I've tried updating it, making some changes in my cPanel and it still doesn't work...
Can you help me?
Your admin url is http://www.hotel-lopera.eu/hotel-admin
it looks you may be using a plugin or htaccess redirect to redirect wp-admin to hotel-admin. But i am not sure what it could be.
I found this by guessing simply by typing http://www.hotel-lopera.eu/login/
and it redirected me to hotel-admin

Resources