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
3 Answers
Reset to default 2Don'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
评论列表(0条)