$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>urls - Wordpress admin page not found error|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

urls - Wordpress admin page not found error

matteradmin8PV0评论

I accidentally changed my wordpress website url from what it was to the url which is same as my site url and after then I am not able to login into my admin it shows error of page not found(while using my original wordpress site url) and if I try to login through my site url it shows me redirected you too many times.

Please help me! I tried accesing file through ftp but got no luck in that, also tried to go to wp-login.php but in that also page not found error is coming. and also tried deleting cookies.Tried disabling plugins and themes from filezilla but nothing is working.

I accidentally changed my wordpress website url from what it was to the url which is same as my site url and after then I am not able to login into my admin it shows error of page not found(while using my original wordpress site url) and if I try to login through my site url it shows me redirected you too many times.

Please help me! I tried accesing file through ftp but got no luck in that, also tried to go to wp-login.php but in that also page not found error is coming. and also tried deleting cookies.Tried disabling plugins and themes from filezilla but nothing is working.

Share Improve this question edited Feb 14, 2019 at 20:18 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Feb 14, 2019 at 19:33 Chinar PatelChinar Patel
Add a comment  | 

2 Answers 2

Reset to default 1

If you don't have database access for some reason, you can also use

// use these in your wp-config.php
define( 'WP_HOME', 'http://example' );
define( 'WP_SITEURL', 'http://example' );

or

// use these in your functions.php
update_option( 'siteurl', 'http://example' );
update_option( 'home', 'http://example' );

to regain access to your site. You can read more about changing the site urls from the codex, Changing The Site URL

I you accidentally changed the site url you can change it back manually, via your database manager (usually phpmyadmin): look at the wp_options table and search for home and siteurl options and edit them back to the original value (your website url).

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far