---
title: "IXWebhosting使用workpress时，如何把子目录重定向到根目录"
author: "koen"
date: "2010-05-30T12:00:08Z"
tags: []
categories: ["互联网"]
slug: "ixwebhosting-workpress"
draft: false
lastmod: "2010-05-30T12:00:08Z"
id: 679117
url: "https://koen.iteye.com/blog/679117"
---

我搜索了一些[文章](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory) ，办法是把wordpress目录下的".htaccess"文件和"index.php"文件复制到网站的根目录，然后修改index.php中的链接指向。但是这么做没有产生效果。

 

反复尝试后发现，只需要将网站根目录下的“index.html”和“info.html”文件删除或者改名，"index.php"如上述方法炮制即可，不需要".htaccess"文件。其实就这么简单……