Search code examples
wordpresspermalinks

WordPress login page redirecting to "page not found"


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 ?


Solution

  • 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.