简体   繁体   English

使用Web平台安装程序在IIS上安装Wordpress

[英]installing wordpress on IIS using web platform installer

I have installed wordpress on my IIS server using web plaform intaller, everything is working fine when i am working on localhost. 我已经使用Web平台formaller在IIS服务器上安装了wordpress,当我在localhost上工作时,一切工作正常。

when when i am trying to browse from external or another pc, the links are stayed http://localhost/page.php , which should be http://myserver/page.php 当我尝试从外部或另一台PC浏览时,链接保持为http://localhost/page.php ,应为http://myserver/page.php

even the styling is not applied because of that. 因此,甚至不应用样式。

how do I change the Path and make it work?? 如何更改路径并使之正常工作? Thanks 谢谢

You will have saved in the database that your site url was http://localhost . 您将在数据库中保存您的站点URL为http:// localhost To access it from everywhere, I'd use your IP address instead, that way you should be able to see it on your local and external machines. 要从任何地方访问它,我将改用您的IP地址,这样您就可以在本地和外部计算机上看到它。

Do a quick export of your db, open in a text editor. 快速导出数据库,在文本编辑器中打开。

Find/ replace 'localhost' and change it to whatever your computer's IP is. 查找/替换“ localhost”,并将其更改为您计算机的IP。

Import your changed sql file. 导入更改的sql文件。 Should be all good :) 应该都很好:)

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

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