简体   繁体   English

本地主机wp-admin的Wordpress-URL不起作用

[英]Wordpress- url for localhost wp-admin is not working

I am working in a project with wordpress, it was working properly but I think I have changed some setting in wordpress setting-general option. 我正在使用wordpress进行项目,但工作正常,但我想我已经更改了wordpress setting-general选项中的某些设置。

So now when I type localhost/wordpress-demo/wp-admin/ then it redirected me to http://localhost/wordpress-Demo/Home/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwordpress-Demo%2Fwp-admin%2F&reauth=1 url. 因此,现在当我键入localhost/wordpress-demo/wp-admin/它将我重定向到http://localhost/wordpress-Demo/Home/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwordpress-Demo%2Fwp-admin%2F&reauth=1网址。

wordpress-demo is my root folder that I have created wordpress-demo是我创建的根文件夹

but it is giving me error like this: 但这给了我这样的错误:

Not Found

The requested URL /wordpress-Demo/Home/wp-login.php was not found on this server. 在此服务器上找不到请求的URL /wordpress-Demo/Home/wp-login.php。

I have typed Home in somewhere setting. 我在某个地方输入了Home So can you please give me some suggestion for work it properly and give me the name of url-mapping file name. 因此,请您给我一些建议,以使其正常工作,并给我提供url映射文件名。

If you can't get to your admin page then you will have to use a database tool to check this. 如果您无法进入管理页面,则必须使用数据库工具进行检查。

In a database tool (phpMyAdmin will work) enter this: 在数据库工具(phpMyAdmin将起作用)中输入以下内容:

select * from wp_options where option_name='siteurl' or option_name='home';

These are the 2 places that WordPress stores your URL. 这是WordPress存储您的URL的2个地方。 See if either of them have /home/ in it. 查看其中是否有/ home /。 If so, correct it and it should fix the problem. 如果是这样,请更正它并解决问题。

Cheers! 干杯!

=C= = C =

Login in phpmyadmin > wp_options > edit the value for site_url and home_url to your site; 登录phpmyadmin> wp_options>将site_url和home_url的值编辑到您的站点;

This occur needs to be changed when you're migrating. 迁移时,需要更改此情况。 If still not working try renaming your .htaccess in root directory. 如果仍然无法正常工作,请尝试在根目录中重命名.htaccess。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM