二级域名怎么绑定:虚拟主机的二级目录,伪静态怎么搞 New
二级域名dd.lzixu.cn绑定虚拟主机的dd目录RewriteEngine onRewriteCond %{HTTP_HOST} ^dd.lzixu.cn$RewriteCond %{REQUEST_URI} !^/dd/RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ /dd/$1RewriteCond %{HTTP_HOST} ^dd.lzixu.cn$RewriteRule ^(/)?$ dd/index.php .htaccess 这个放到根目录,有错吗?
# 将 RewriteEngine 模式打开RewriteEngine On# 如 www.discuz.vip/bbs/,对应的就是 RewriteBase /bbs/,如果程序放在根目录中,使用 RewriteBase /RewriteBase /dd/# Rewrite 系统规则请勿修改RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^article-(+)-(+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^forum-(\w+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^thread-(+)-(+)-(+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^group-(+)-(+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^blog-(+)-(+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^archiver/(fid|tid)-(+)\.html$ archiver/index.php?action=$1&value=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^(+*)-(+)\.html$ plugin.php?id=$1:$2&%1.htaccess 这个放到二级dd目录,有错吗?
我知道答案 回答被采纳将会获得1 贡献 已有11人回答 二级目录的伪静态文件正常了
根目录的伪静态怎么弄?
我想把二级域名绑定虚拟主机的二级目录 正常了,域名商要绑定空间,空间商那里也要绑定二级域名的 哪里出错了,首页多了DD的
http://dd.lzixu.cn/dd/
请问是哪里的问题吗? dd.lzixu.cn
www.lzixu.cn
现在这2个域名访问的都是首页,不是DD目录的论坛程序,哪里出了问题呢 http://dd.lzixu.cn/dd/forum-180-1.html
伪静态还是多了DD目录这个呀,请教呀 DD目录的伪静态文件,应该要怎么弄,域名才不显示二级目录DD呢
现在是http://dd.lzixu.cn/dd/forum-180-1.html
我想要http://dd.lzixu.cn/forum-180-1.html 看看下面这段伪静态
# 将 RewriteEngine 模式打开RewriteEngine On# 如 www.discuz.vip/bbs/,对应的就是 RewriteBase /bbs/,如果程序放在根目录中,使用 RewriteBase /RewriteBase /# Rewrite 系统规则请勿修改RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^article-(+)-(+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^forum-(\w+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^thread-(+)-(+)-(+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^group-(+)-(+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^blog-(+)-(+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^archiver/(fid|tid)-(+)\.html$ archiver/index.php?action=$1&value=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^(+*)-(+)\.html$ plugin.php?id=$1:$2&%1 还是这样,带有DD目录的
https://dd.lzixu.cn/dd/thread-42022-1-1.html
https://dd.lzixu.cn/thread-42022-1-1.html
这两个都能访问,但访问https://dd.lzixu.cn,首页+版块+帖子,都带有二级目录DD的 那就是安装目录的问题了,需要调整下目录
页:
[1]