WordPress login page redirecting to "page not found" - wordpress

Hi, I am currently working on a Wordpress site and suddenly I got
this error message " page not found" , I tried to login into pw-admin
to check the permalinks values but I couldnot login into admin or
front end .
Could you please help me ?

It may be that you accidentally miss-set the 'siteurl' and/or 'home' values for your installation. If that is true, you can reset them through the database. If you named your tables according to the default, the wp_options table is where you should look. Search for siteurl and home in the option_name column and replace them with the correct value for the site.
In most cases they should both be https://example.com/.
Edit
Since this answer has been accepted as correct, I will add the comment that I think actually helped the questioner to the answer.
Every link generated by the system is adding /ar/home-2-2/ to the url. You've got some weird redirects going on. It probably has to do with whatever plugin you're using to get multiple language versions of the site going. Try disabling that plugin (you can just rename the folder of the plugin, if you have access to filesystem) and see if returns to normal.

if your not able to access frontend and backend.Please check your site url in database

Related

I have forgotten my wordpress website admin dashboard url

Please help me change my wordpress website dashboard url , I have tried to enter with /wp-admin and /wp-login but no success,please advise me in which table of database I can change it manually .
You can check for configuration saved by plugins on the (wp_)options table. Probably, you will need to read carefully, because on the table you can find serialized strings and lot of another things. But, if the plugin doesn't have a own table to save configurations, there's on these table.
If you know what plugin have you installed to do it, you can check on source of it for know the exact value and table where's the configuration of admin address saved.
Also, if you only are interested on accessing to admin page, you can remove (or move) the plugin folder itself (not wp-content/plugins, the plugin you've installed itself).
If the plugin are not present, you can recover accessing to admin at wp-admin. But if you reinstall the plugin later, the address will be changed too.

Wordpress Multi-Site in a SubDomain

I'm having trouble getting my Wordpress multi-site installation working the way I want it. I have 3 blogs that I want working in subdomains, and I want to use the main domain as the main website for other things.
So, I want:
Main Blog: stephen.digitaleagle.net
2nd Blog: linuxsagas.digitaleagle.net
3rd Blog: psst0101.digitaleagle.net
So, to log into the network, I would use this url:
stephen.digitaleagle.net/wp-admin/network
I can't be the only one who wants it to work this way. Instead, it seems designed to work with the main blog on the main domain and the other blogs as subdomains.
When I create the 2nd blog, it was:
linuxsagas.stephen.digitaleagle.net
I have gotten part way there...
Step 1: Created the site. (I actually used WP-Cli)
Step 2: I updated the wp2_option and wp3_option tables ... I changed the rows where the option_name field was siteurl or home.
Step 3: I edited the site on the sites page and changed the URL.
After those steps, the blogs show up on the correct URLs. My problem is that the admin logins don't work. I don't get an error message. it just doesn't log in for some reason.
If it makes a difference, I am using nginx instead of apache. I don't think that this the problem, because the URL takes me to wordpress.
Is there a correct way to do this? Is this not supported?
I finally figured it out by adding error_log() statements into the wordpress code and with this post:
Can't log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
I cleared my cookies for the site, and that's when I started getting the error message about cookies not being enabled for the site.
I added this line to the wp-config.php file:
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
I'm still not sure if this is the "right" way, but it is working, and I guess that is what counts.

Have you ever encountered Wordpress settings that wouldn't stick?

I'm in the middle of moving Wordpress from localhost on my local machine to the live web. I modified the wp_options table's siteurl and home values to point to blog.site.com/. It worked the first time I entered this url, but subsequent url entries would not display the blog page.
Is anyone familiar with this problem?
It's not really straight forward to change the URL of a wordpress site after the initial install because the database contains references to the initial url.
Have you tried following the steps outlined in these pages?
http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change
http://codex.wordpress.org/Changing_The_Site_URL
You can use this script to update the DB referees from the old url.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Once you change the url in the wp_options table and upload the new database, make sure the first thing you do is go into the live site and set your permalinks. Even if you just go in and click save. This should update the url accordingly. However, any links in the content areas, widgets, etc. will still need to be updated manually with the new domain.
There are also some tools to help with this type of migration. Haven't tried it yet, but have heard good things about WP DB Migrate Pro

wordpress permalinks not working 500 error

i made a mess of some kind my website was running perfectly but i did some changes to wpconfig i cant seem to remember and the result is that if i dont use permalinks and use simple page id the whole website works and if i try to use permalinks all the individual links break but home page as well as admin panel keeps working .
It always gives 500 internal server error
Any one got any ideas what could have gone wrong .
P.S.> I have deleted .htaccess and created a new one and copied the code given by wordpress but its still not working.
my website is NewsKase
I had the same problem. My WordPress site was running perfectly until I changed my permalinks. All my individual links break but the main page as well as admin panel keeps working. When I use simple page id as permalink the whole website works.
The are several thing that can cause this problem. The following post lists some possibilities you can go through to find the root of your permalink problem.
https://economictheoryblog.com/2016/07/29/self-hosted-wordpress-permalink-problems/
Try the following:
Get a fresh copy of wp-config.php and enter in your DB details
(username, pw, name, table prefix).
Delete htaccess file
Regenerate permalinks (admin - settings - permalinks)
Ensure server has mod-rewrite on

Wordpress Login & Register works in localhost but not in my server

I have a custom ajax implementation of the Login and Registration parts in a wordpress site I am building. Here is the link: Uploaded site
I use the wp signon function. It works perfectly fine in my localhost, but once i uploaded it to the server for testing, there seems to be something wrong and I guess the session variable is not getting set. Could somebody please help me out ? It authenticates properly though, wherein if I type in a wrong id and password , an error msg is shown.
Have you updated your wp-options table? Often when you create local and then upload the urls in your options table don't get changed and it can mess things up. Have you tried logging in without the cool UI you built, to see if it is your WP install or the UI that is causing this?
Here is something to try running on your database:
update wp_options set option_value=replace(option_value,'local.old', 'local.new');
update wp_posts set post_content=replace(post_content,'local.old', 'local.new');
update wp_posts set guid=replace(guid,'local.old', 'local.new');
Replace all the local.old with your old url (probably 'http://localhost') and all local.new with your new url (http://www.enrista.co.za/urbanthirst/ most likely).
You might need to query the wp_options table to find out what url it was using if you aren't sure. To find out the old url, try this:
SELECT option_name FROM wp_options WHERE option_name='siteurl'
Changing that will often fix these issues, because WP will try to access the old website to login, if the urls aren't changed in the table.

Resources