Появляется всё больше людей, у которых MFS 2.2 не работает на поддомене. В этой статье я дам совет как установит скрипт MFS 2.2 на поддомен.
Нам необходимо открыть файл .htaccess.
Открываем и видим следующее:
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^index.html$ index.php [L]
RewriteRule ^ver.html$ verification.php [L]
RewriteRule ^viewads.html$ sites.php [L]
RewriteRule ^task-(.*).html$ tasklist.php?id=$1 [L]
RewriteRule ^adabuse-(.*).html$ zhaloba.php?id=$1 [L]
RewriteRule ^readads.html$ mails.php [L]
RewriteRule ^login.html$ login.php [L]
RewriteRule ^tasks.html$ tasklist.php [L]
RewriteRule ^task-(.*),(.*).html$ /tasklist.php?id=$1&p=$2 [L]
RewriteRule ^(.*)-tasks.html$ tasklist.php?p=$1 [L]
RewriteRule ^(.*)-news.html$ news.php?pg=$1 [L]
RewriteRule ^(.*)-new.html$ news.php?id=$1 [L]
RewriteRule ^(.*)-([^/]*)-tasks.html$ tasklist.php?sort=$2&p=$1 [L]
RewriteRule ^(.*)-mytasks.html$ tasklist.php?pg=onlymy&p=$1 [L]
RewriteRule ^([^/]*)-(.*)-mytasks.html$ tasklist.php?pg=onlymy&sort=$1&p=$2 [L]
RewriteRule ^add([^/]*)(/?).html+$ advertise.php?adv=$1 [L]
RewriteRule ^adview-(.*).html$ view.php?ad=$1 [L]
RewriteRule ^adviewp-(.*).html$ viewp.php?ad=$1 [L]
RewriteRule ^abusetask-(.*).html$ /taskabuse.php?id=$1 [L]
RewriteRule ^profile.html$ members.php [L]
RewriteRule ^chat.html$ chat.php [L]
RewriteRule ^refbirj.html$ refbirj.php [L]
RewriteRule ^adblock-info.html$ /block_info.php [L]
RewriteRule ^buy-refs.html$ buyrefs.php [L]
RewriteRule ^allbanners-468.html$ banners468.php [L]
RewriteRule ^allbanners-100.html$ banners100.php [L]
меняем всё на:
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^index.html$ /index.php [L]
RewriteRule ^ver.html$ /verification.php [L]
RewriteRule ^viewads.html$ /sites.php [L]
RewriteRule ^task-(.*).html$ /tasklist.php?id=$1 [L]
RewriteRule ^adabuse-(.*).html$ /zhaloba.php?id=$1 [L]
RewriteRule ^readads.html$ /mails.php [L]
RewriteRule ^login.html$ /login.php [L]
RewriteRule ^tasks.html$ /tasklist.php [L]
RewriteRule ^task-(.*),(.*).html$ /tasklist.php?id=$1&p=$2 [L]
RewriteRule ^(.*)-tasks.html$ /tasklist.php?p=$1 [L]
RewriteRule ^(.*)-news.html$ /news.php?pg=$1 [L]
RewriteRule ^(.*)-new.html$ /news.php?id=$1 [L]
RewriteRule ^(.*)-([^/]*)-tasks.html$ tasklist.php?sort=$2&p=$1 [L]
RewriteRule ^(.*)-mytasks.html$ /tasklist.php?pg=onlymy&p=$1 [L]
RewriteRule ^([^/]*)-(.*)-mytasks.html$ /tasklist.php?pg=onlymy&sort=$1&p=$2 [L]
RewriteRule ^add([^/]*)(/?).html+$ /advertise.php?adv=$1 [L]
RewriteRule ^adview-(.*).html$ /view.php?ad=$1 [L]
RewriteRule ^adviewp-(.*).html$ /viewp.php?ad=$1 [L]
RewriteRule ^abusetask-(.*).html$ /taskabuse.php?id=$1 [L]
RewriteRule ^profile.html$ /members.php [L]
RewriteRule ^chat.html$ /chat.php [L]
RewriteRule ^refbirj.html$ /refbirj.php [L]
RewriteRule ^adblock-info.html$ /block_info.php [L]
RewriteRule ^buy-refs.html$ /buyrefs.php [L]
RewriteRule ^allbanners-468.html$ /banners468.php [L]
RewriteRule ^allbanners-100.html$ /banners100.php [L]
В общем, ставим слэш ("/") перед каждым названием php файла.
Отзывы