raksmart活动促销

分享

写回答

发帖

有关论坛的在LP

国外虚拟主机 国外虚拟主机 4887 人阅读 | 14 人回复

发表于 2008-3-14 08:08:46 | 显示全部楼层 |阅读模式

我现在有一个论坛在二级域名里面。。
比如在 www.domainname.com/bbs 或者这个  bbs.dmainname.com 里面

我现在想把论坛转移到 www.domainname.com 下面。。。能够直接把bbs里面文件copy到 www文件里面吗?  还是说需要重新在www文件里面安装?

回答|共 14 个

inori

发表于 2008-3-14 10:12:46 | 显示全部楼层

如果把文件全转到WWW目录里,会看上去很乱的
还是建议做个.htaccess

# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.


# Do not change this line.

RewriteEngine on


# Change yourdomain.com to be your main domain.

RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$


# Change 'subfolder' to be the folder you will use for your main domain.

RewriteCond %{REQUEST_URI} !^/subfolder/

# Don't change this line.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteRule ^(.*)$ /subfolder/$1

# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
RewriteRule ^(/)?$ subfolder/index.php [L]

把里面的yourmaindomain.com改成你的主域名
把subfolder改成二级域名,然后保存.htaccess,上传到根目录下就行了

likecarman

发表于 2008-3-14 10:26:29 | 显示全部楼层

有一个问题 。。。这样设置后。
我把主域名指向这个文件夹后,如果我继续用以前的2级域名 。或者。 www.domainname.com/bbs  这个还会正常进入我的论坛吗
RAKSmart

大漠孤狼

发表于 2008-3-14 10:26:49 | 显示全部楼层

直接移过去就可以了

likecarman

发表于 2008-3-15 03:20:54 | 显示全部楼层

在问一下版主们.

我www里面有2个文件夹. 是不一样的论坛.这种情况..我该怎么办?
我想把其中一个用主域名显示...另外一个用2级域名绑定新的域名显示
RAKSmart

inori

发表于 2008-3-15 07:58:28 | 显示全部楼层

比如,WWW里有abc 目录  想要指主域名
那么根据我上面一贴写的.htaccess
只要分别把里面的subfolder改成abc,yourmaindomain改成主域名地址
然后保存上传到根目录

至于第2个,只需要在CP里,add domain下就行了
New Domain Name:你想加的域名
Username/directory/subdomain Name:域名绑定的目录

评分

参与人数 1金币 +1 收起 理由
大漠孤狼 + 1 助人为乐

查看全部评分

likecarman

发表于 2008-3-15 15:19:21 | 显示全部楼层

感谢万分
这样来说.是不是可以用同样的方法.... 其他地方的域名,任意的绑定在任意目录上面?

inori

发表于 2008-3-15 15:23:42 | 显示全部楼层

当然可以拉
LP说是能无限站嘛....

bingu

发表于 2008-3-15 15:27:37 | 显示全部楼层

不知道重新安装,然后导入数据库会不会好点

vebey

发表于 2008-3-15 16:45:45 | 显示全部楼层

Addon domain的时候提示:

Addon Domain Additions


Bind reload skipped on fetu (nameserver disabled) Bind reloading on ns2 using rndc zone: [vebey.net] Bind reloading on ns1 using rndc zone: [vebey.net] The subdomain, vebey.vebey.net has been added.

Error from park wrapper: vebey.com is owned by another user.

Removed vebey.vebey.net Server at line: 3928. Removed Entry from httpd.conf Bind reload skipped on fetu (nameserver disabled) Bind reloading on ns1 using rndc zone: [vebey.net] Bind reloading on ns2 using rndc zone: [vebey.net] The subdomain, vebey.vebey.net has been removed.

vebey.com could not be setup. The subdomain vebey.vebey.net was not setup either.

为什么呢?NS已修改成Lunarpages的了
您需要登录后才可以回帖 登录 | 注册

本版积分规则