Imago
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Вставить в соответствующие места для Nuke 6.0 и phpBB2 0.6 .htaccess Код: Options +FollowSymlinks # deny most common except .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$"> deny from all </FilesMatch> ErrorDocument 404 /error.php RewriteEngine On RewriteRule /index.html /index.php #Articles RewriteRule ^article([1-9][0-9]*).* modules.php?name=News&file=article&sid=$1 RewriteRule ^topic([1-9][0-9]*).* modules.php?name=News&new_topic=$1 #Forums RewriteRule ^forums.html modules.php?name=Forums RewriteRule ^forumsid-([1-9]*).html modules.php?name=Forums&file=viewforum&f=$1 RewriteRule ^forums-t-([1-9]*).html modules.php?name=Forums&file=viewtopic&t=$1 RewriteRule ^forums-p-([1-9]*).html modules.php?name=Forums&file=viewtopic&p=$1 | header.php вставить где нужно по порядку Код: "'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'", "'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'", "'(?<!/)modules.php\?name=News&new_topic=([0-9]*)'", "'(?<!/)modules.php\?name=News&new_topic=([0-9]*)'", "'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)'", "'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)'", "'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)'", "'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)'", "'(?<!/)modules.php\?name=Forums&file=viewtopic&p=([0-9]*)'", "'(?<!/)modules.php\?name=Forums&file=viewtopic&p=([0-9]*)'", "'(?<!/)modules.php\?name=Forums'", | последнюю зап. убрать, если это последняя строка и ниже Код: "article\\1.html", "article\\1.html", "topic\\1.html", "topic\\1.html", "forumsid-\\1.html", "forumsid-\\1.html", "forums-t-\\1.html", "forums-t-\\1.html", "forums-p-\\1.html", "forums-p-\\1.html", "forums.html", | запят. тоже убрать если последняя строка. Соблюдать порядковые соответствия. Этот rewrite работает также with scrolling block for phpBB2 0.6 |