如何在wordpress多站点中实现子目录站点?

时间:2016-04-23 04:25:10

标签: wordpress .htaccess multisite

我启用了网络管理员的wordpress设置。 我已经配置了不同的网站。

http://example.com/ipl ,
http://example.com/cricket,
http://example.com/football,
http://example.com/ileague,
http://example.com/sports

但我要配置的是以下内容而不重定向(URL不应在地址栏中更改)

  

http://example.com/sports/cricket应提供来自的内容       http://example.com/cricket   http://example.com/sports/cricket/ipl应提供来自http://example.com/ipl的内容   http://example.com/sports/football应提供来自http://example.com/football的内容   http://example.com/sports/football/ileague应该提供http://example.com/ileague

中的内容

1 个答案:

答案 0 :(得分:0)

请在.htacess文件中添加以下代码。

m1<-t(matrix(c("text", 1:3), ncol=2, nrow=4))
m2<-t(matrix(c("text", 1:3), ncol=2, nrow=4))
m3<-t(matrix(c("text", 1:3), ncol=2, nrow=4))

> m1
     [,1]   [,2] [,3] [,4]
[1,] "text" "1"  "2"  "3" 
[2,] "text" "1"  "2"  "3" 
> m2
     [,1]   [,2] [,3] [,4]
[1,] "text" "1"  "2"  "3" 
[2,] "text" "1"  "2"  "3" 
> m3
     [,1]   [,2] [,3] [,4]
[1,] "text" "1"  "2"  "3" 
[2,] "text" "1"  "2"  "3"