简体   繁体   English

在本地Wamp上设置远程Wordpress网站时出现问题

[英]Problems Setting Up Remote Wordpress Site on Local Wamp

New to php and wordpress. PHP和Wordpress的新手。 Trying to set up one my website on my machine. 试图在我的机器上建立一个我的网站。 Local WAMP server is running fine. 本地WAMP服务器运行正常。 I have another website running on it. 我有另一个网站正在运行。 This website was a fresh installation of wordpress on my local. 该网站是我本地上全新安装的wordpress。 But this other website that I'm trying to setup (downloaded files from server) loads the home page but I cannot access admin and any other pages eg when I try to access admin I get redirected to 但是,我尝试设置的该其他网站(从服务器下载文件)加载了主页,但是我无法访问admin和其他任何页面,例如,当我尝试访问admin时,我被重定向到

http://jfr.local/wp-admin/jfr.local/wp-login.php?redirect_to=http%3A%2F%2Fjfr.local%2Fwp-admin%2F&reauth=1

jfr.local is my local website setup as virtual host on WAMP. jfr.local是我在WAMP上设置为虚拟主机的本地网站。 I already imported website and had to change site url in wp-options table because initially nothing was working. 我已经导入了网站,并且不得不更改wp-options表中的网站url,因为最初没有任何效果。 But now I don't know what I need to to do. 但是现在我不知道该怎么办。 Any suggestions? 有什么建议么?

So I figured this out. 所以我想通了。 Issue was that "http" was missing in the url in wp-options table. 问题是wp-options表的URL中缺少“ http”。 After this change I could log into admin but other pages on the site were still not showing. 进行此更改后,我可以登录admin,但该站点上的其他页面仍未显示。 I read somewhere that by visiting each page within admin the permalinks get re-created. 我在某处读到,通过访问admin中的每个页面,可以重新创建永久链接。 So that is what I did and all pages started showing after this. 这就是我所做的,此后所有页面开始显示。 So seems like everything is working fine right now. 看来现在一切正常。

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

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