Wordpress Multisite网址重新映射

时间:2017-08-18 17:11:16

标签: wordpress .htaccess mod-rewrite permalinks multisite

我目前正在使用复杂的多站点设置。我将该网站作为登录页面/博客和另一个主要功能的网站。主站点的子域设置为/dashboard/,因此之后加载的每个其他页面都包含仪表板slug。 IE www.name.com/dashboard/post-a-project

是否有办法让网站显示为www.name.com/post-a-project,同时不会干扰目标网页?这主要是出于审美目的。

1 个答案:

答案 0 :(得分:0)

<ion-input type="text" placeholder="Nombres" [(ngModel)]="user.name"> </ion-input> 文件中尝试使用此功能:

.htaccess

我已使用RewriteEngine On RewriteRule ^dashboard/(.*)$ /$1 [L,R=302] 将其设置为临时重定向。如果这适用于您,请将其更改为R=302以使其成为永久重定向。

确保在测试之前清除缓存。