Wordpress Cant access wp-login.php

For miskate i change the url of my wordpress on settings -> general. In order to revert this i changed the wp-config.

For miskate i change the url of my wordpress on settings -> general. In order to revert this i changed the wp-config.php file and add this too config.php

define('WP_HOME','localhost/wordpress');
define('WP_SITEURL','localhost/wordpress');

Then i restarted the apache and i hope i could enter again on my admin panel. But everytime i u use the localhost/wordpress/wp-login.php i receive a 404 not found

ideas?

For miskate i change the url of my wordpress on settings -> general. In order to revert this i changed the wp-config.php file and add this too config.php

define('WP_HOME','localhost/wordpress');
define('WP_SITEURL','localhost/wordpress');

Then i restarted the apache and i hope i could enter again on my admin panel. But everytime i u use the localhost/wordpress/wp-login.php i receive a 404 not found

ideas?

Share Improve this question edited May 10, 2017 at 10:20 fuxia 107k39 gold badges255 silver badges459 bronze badges asked May 10, 2017 at 10:15 wordpressbeginnerwordpressbeginner 11 bronze badge 1
  • use localhost/wordpress in place of localhost/wordpress – user25225 Commented Jan 17, 2018 at 15:44
Add a comment  | 

3 Answers 3

Reset to default 2

Don't edit your wp-config.php file directly.

Instead, with PHPMyAdmin, access your database and check for the table _options. You should see entries there for site_url and home_url change those values back to what you need

If you want to edit it form wp-config.php then use

define('WP_HOME','http://example'); define('WP_SITEURL','http://example');

Try this 1. Clean Cookies and Caches in the Browser 2. rename ".htaccess" file to .htaccess _backup in the "wordpress" folder 3. Open your phpmyadmin then click on your database, select table "options" 4. Edit siteurl and type correct url in option_value field.

Save.

if not working, try rename all plugin folder to disable it at /wp-content/plugins/

Good luck

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745618601a4636384.html

相关推荐

  • Wordpress Cant access wp-login.php

    For miskate i change the url of my wordpress on settings -> general. In order to revert this i changed the wp-config.

    22天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信