|
|
ljhping
发表于 2011-3-7 16:14:43
|
显示全部楼层
哪个教程看了,还是不懂设置。。。。是不是这样啊。。。我怎么设打开都是同一个站 我用的是:windows主机 是不是不可以用htaccess
DirectoryIndex default.php index.htm index.php index.html default.htm default.html index.shtml default.shtml
RewriteEngine On
Options All -Indexes
php_value upload_max_filesize 20M
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)这里写原先绑定的域名$
RewriteCond %{REQUEST_URI} !^/这里写原域名的路经/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /这里写原域名的路经/$1
RewriteCond %{HTTP_HOST} ^(www.)?这里写原先绑定的域名$
RewriteRule ^(/)?$ lenfans/index.php [L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?这里写要新加绑定的域名$
RewriteCond %{REQUEST_URI} !^/这里写新加域名的路经/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /这里写新加域名的路经/$1
RewriteCond %{HTTP_HOST} ^(www.)?这里写要新加绑定的域名$
RewriteRule ^(/)?$ 这里写新加域名的路经/index.php [L]
ErrorDocument 401 /404.htm
ErrorDocument 403 /404.htm
ErrorDocument 404 /404.htm
ErrorDocument 500 /404.htm
[ 本帖最后由 ljhping 于 2011-3-7 04:20 PM 编辑 ] |
|