---
title: "wordpress 内网外网访问问题"
author: "fosa0989"
date: "2011-04-08T01:29:13Z"
tags: ["WordPress"]
categories: ["Web前端"]
slug: "wordpress"
draft: false
lastmod: "2011-04-08T01:29:13Z"
id: 991387
url: "https://hchen229.iteye.com/blog/991387"
---

在实验室的服务器上部署了wordpress，发现在外网访问正常，但是内网不能显示样式。

看了下页面源代码。发现是因为使用绝对地址的原因。

于是修改wp\_options里面的siteurl和home两个选项为相对地址。

比如原先为http://codegreen.cs.wayne.edu/~huichen, 改为/~huichen即可。(在wordpress后台不能直接改。)

修改后访问正常了就。