2012-05-06 60 views
0

我有godaddy上的豪华托管; 我的主要网站removed.com有.htaccess /文件夹。那就是:godaddy子文件夹域名.htaccess写作

RewriteEngine on 
RewriteCond %{HTTP_HOST} !^www\.removed\.com [NC] 
RewriteCond %{HTTP_HOST} !^www\.removedto\.com [NC] 
RewriteRule (.*) http://www.removed.com/$1 [R=301,L] 


RewriteCond %{HTTP_HOST} ^www\.removedto\.com 
RewriteRule ^(\w+)/(\w+)\.html index.php?bolum=$1&icerik=$2 [L,QSA] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{HTTP_HOST} ^www\.removed\.com 
RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA] 

,我有域removedto.com的子文件夹/DigerSiteler/removedto,我需要在removed.comremovedto.com太网址短路。这个领域removedto.com有.htacess

RewriteEngine On 
RewriteRule ^(\w+)/(\w+)\.html index.php?bolum=$1&icerik=$2 [L,QSA] 

我的主要网站的网址缩短/index.php?title=$1工作,但子域removedto规则犯规的工作?

我尝试了一些,但没有成功。我必须写什么?

例如:http://www.removedto.com/oyunlar/oyun.html必须重写的index.php bolum = $ 1 & icerik = $ 16但犯规的工作?我有404.

回答

0

所列出的代码应该可以工作。我可以让我们的高级团队为您查看这是否是服务器问题。如果您愿意,请在http://x.co/WeHelp上订票,并将您发布的事件编号置于评论中以回答此问题。希望这可以帮助。