Destoon默認的偽靜態(tài)公司網(wǎng)址為 www.***.com/com/會員名 如果想要把鏈接優(yōu)化一下 改成 www.***.com/s_會員名 這樣的網(wǎng)址,,便于SEO 和收錄(當(dāng)然 上面的 c_可以自己定義),首先,我們要找到原來默認的 com/ 的位置,,打開
根目錄 include/global.func.php 這個是全站的 公共函數(shù)文件 ,,每次DT 更新都會更新,修改以后,,每次升級請留意,,打開后,我們找到 原
$URL = DT_PATH.'com/'.$username.'/';
將其修改成
$URL = DT_PATH.'c_'.$username.'/';
2-1:打開 根目錄 .htaccess 文件 找到
RewriteRule ^(com)/([a-z0-9_\-]+)/([a-z]+)/(.*)\.html$ index.php?homepage=$2&file=$3&rewrite=$4
RewriteRule ^(com)/([a-z0-9_\-]+)/([a-z]+)([/])?$ index.php?homepage=$2&file=$3
RewriteRule ^(com)/([a-z0-9_\-]+)([/])?$ index.php?homepage=$2
將其修改為
RewriteRule ^(c_)([a-z0-9_\-]+)/([a-z]+)/(.*)\.html$ index.php?homepage=$2&file=$3&rewrite=$4
RewriteRule ^(c_)([a-z0-9_\-]+)/([a-z]+)([/])?$ index.php?homepage=$2&file=$3
RewriteRule ^(c_)([a-z0-9_\-]+)([/])?$ index.php?homepage=$2
所有的修改就完成之后,,到網(wǎng)站后臺更新緩存,,重新生成下公司模塊就行,更新信息就OK了,。
根目錄 include/global.func.php 這個是全站的 公共函數(shù)文件 ,,每次DT 更新都會更新,修改以后,,每次升級請留意,,打開后,我們找到 原
$URL = DT_PATH.'com/'.$username.'/';
將其修改成
$URL = DT_PATH.'c_'.$username.'/';
2-1:打開 根目錄 .htaccess 文件 找到
RewriteRule ^(com)/([a-z0-9_\-]+)/([a-z]+)/(.*)\.html$ index.php?homepage=$2&file=$3&rewrite=$4
RewriteRule ^(com)/([a-z0-9_\-]+)/([a-z]+)([/])?$ index.php?homepage=$2&file=$3
RewriteRule ^(com)/([a-z0-9_\-]+)([/])?$ index.php?homepage=$2
將其修改為
RewriteRule ^(c_)([a-z0-9_\-]+)/([a-z]+)/(.*)\.html$ index.php?homepage=$2&file=$3&rewrite=$4
RewriteRule ^(c_)([a-z0-9_\-]+)/([a-z]+)([/])?$ index.php?homepage=$2&file=$3
RewriteRule ^(c_)([a-z0-9_\-]+)([/])?$ index.php?homepage=$2
所有的修改就完成之后,,到網(wǎng)站后臺更新緩存,,重新生成下公司模塊就行,更新信息就OK了,。