Страница 1 из 1

mod_rewrite

Добавлено: 19 окт 2008, 16:24
earnest
Помогите я не селен в mod_rewrite, есть сайт. у которого есть .htaccess файл:

Код: Выделить всё

RewriteCond     %{REQUEST_URI}  !^/index.html
#RewriteCond     %{REQUEST_URI}  !^/img_proxy.php
RewriteCond     %{REQUEST_URI}  !chmod.php
RewriteCond     %{REQUEST_URI}  !^/i/
RewriteCond     %{REQUEST_URI}  !^/files/
RewriteCond     %{REQUEST_URI}  !^/thumbs/
RewriteCond     %{REQUEST_URI}  !\.css$
RewriteCond     %{REQUEST_URI}  !\.js$
RewriteCond     %{REQUEST_URI}  !\.swf$
RewriteCond     %{REQUEST_URI}  !/robots.txt$
RewriteCond     %{REQUEST_URI}  !/favicon.ico$
RewriteCond     %{REQUEST_URI}  !^/root
RewriteCond     %{REQUEST_URI}  !^/admin/i/
RewriteCond     %{REQUEST_URI}  !^/libext/FCKeditor/
RewriteCond     %{REQUEST_URI}  !dispatcher.php
RewriteCond     %{REQUEST_URI}  !under.html
RewriteCond     %{REQUEST_URI}  !^/intro.html
RewriteRule     ^(.*)        /site/dispatcher.php/$1

RewriteCond     %{REQUEST_URI}  !^/files/
RewriteCond     %{REQUEST_URI}  !^/thumbs/
RewriteCond     %{REQUEST_URI}  !\.css$
RewriteCond     %{REQUEST_URI}  !\.js$
RewriteCond     %{REQUEST_URI}  ^/root
RewriteCond     %{REQUEST_URI}  !^/admin/i/
RewriteCond     %{REQUEST_URI}  !^/libext/FCKeditor/
RewriteCond     %{REQUEST_URI}  !dispatcher.php

RewriteRule     ^root/(.*)   /admin/dispatcher.php/$1
но все файлы переношу в папку /ru/ что надо поправить в этом файле?