форум вебмастероff на AlfaSpace.NET |
Ubuntu и Linux
|реактивный бесплатный хостинг
| Киноклуб. ВСЁ БЕСПЛАТНО!
база знаний хостинга
|
правила форума
| Начало ° Ответить ° Статистика ° Опрос ° Регистрация ° Поиск ° FAQ ° |
| Форум вебмастеров на AlfaSpace.NET / Создание сайта / Проблема с .htaccess |
| Автор | Сообщение |
| linq1 Участник 2 |
# Дата: 20 Июн 2006 13:51 Подскажите как решить вопрос. Как можно сделать исключение для определённых папок чтоб в них не менялся index.html Я загружаю index.html а .htaccess меняет его на другой index.html (если загружаю index.htm или index.php всё нормально а index.html меняет) Код .htaccess # if you want to use mod_rewrite, set this 'On' RewriteEngine On RewriteBase / # show all categories RewriteCond %{REQUEST_URI} showcat\.html$ [NC] RewriteRule ^(.*)$ index.php?action=show [L,QSA] # show all categories RewriteCond %{REQUEST_URI} bannerpage\.html$ [NC] RewriteRule ^bannerpage(.*)$ index.php?action=bannerpage [L,QSA] # the search page RewriteCond %{REQUEST_URI} prices\.html$ [NC] RewriteRule ^(.*)$ index.php?action=prices [L,QSA] # the add content page RewriteCond %{REQUEST_URI} personals\.html$ [NC] RewriteRule ^(.*)$ index.php?action=personals [L,QSA] # the add content page RewriteCond %{REQUEST_URI} specials\.html$ [NC] RewriteRule ^(.*)$ index.php?action=specials [L,QSA] # the contact page RewriteCond %{REQUEST_URI} savesubscribe_([0-9]+)\.html$ [NC] RewriteRule ^savesubscribe_(.*)$ index.php?action=savesubscribe&insert_id=$1 [L,QSA] # the contact page RewriteCond %{REQUEST_URI} specials_([0-9]+)\.html$ [NC] RewriteRule ^specials_(.*)$ index.php?action=specials&id=$1 [L,QSA] # the add content page RewriteCond %{REQUEST_URI} seminars\.html$ [NC] RewriteRule ^(.*)$ index.php?action=lseminars [L,QSA] # the contact page RewriteCond %{REQUEST_URI} sem_details_([0-9]+)\.html$ [NC] RewriteRule ^sem_details_(.*)$ index.php?action=sem_details&course=$1 [L,QSA] # the ask question page RewriteCond %{REQUEST_URI} schedule\.html$ [NC] RewriteRule ^(.*)$ index.php?action=schedule [L,QSA] # the ask question page RewriteCond %{REQUEST_URI} mailsend2seminar\.html$ [NC] RewriteRule ^(.*)$ index.php?action=mailsend2seminar [L,QSA] # the open questions page RewriteCond %{REQUEST_URI} contact\.html$ [NC] RewriteRule ^(.*)$ index.php?action=contact [L,QSA] # the help page RewriteCond %{REQUEST_URI} feedback\.html$ [NC] RewriteRule ^(.*)$ index.php?action=feedback [L,QSA] # the contact page RewriteCond %{REQUEST_URI} repetitor\.html$ [NC] RewriteRule ^(.*)$ index.php?action=repetitor [L,QSA] # the contact page RewriteCond %{REQUEST_URI} subscribe\.html$ [NC] RewriteRule ^(.*)$ index.php?action=subscribe [L,QSA] # the contact page RewriteCond %{REQUEST_URI} subscribe_([0-9]+)\.html$ [NC] RewriteRule ^subscribe_(.*)$ index.php?action=subscribe&course=$1 [L,QSA] # a page with a record RewriteCond %{REQUEST_URI} ([0-9]+)_([0-9]+)_([a-z]+)\.html$ [NC] RewriteRule ^(.*)_(.*)_(.*)\.html$ index.php?action=artikel&cat=$1&id=$2 [L,QSA] # a category page RewriteCond %{REQUEST_URI} category([0-9]+)\.html$ [NC] RewriteRule ^category(.*)\.html$ index.php?action=courses&cat=$1 [L,QSA] # a category page with page count RewriteCond %{REQUEST_URI} courses([0-9]+)\.html$ [NC] RewriteRule ^courses(.*)\.html$ index.php?action=details&course=$1 [L,QSA] # a category page with page count RewriteCond %{REQUEST_URI} courses([0-9]+)$ [NC] RewriteRule ^courses(.*)$ index.php?action=details&course=$1 [L,QSA] # a category page with page count RewriteCond %{REQUEST_URI} details([0-9]+)\.html$ [NC] RewriteRule ^details(.*)\.html$ index.php?action=details&course=$1 [L,QSA] RewriteRule links.html$ index.php?action=links [PT] RewriteRule links_thanks.html$ index.php?action=links&dde_action=thanks [PT] RewriteRule links_group(.*)_page(.*).html$ index.php?action=links&dde_action=list&dde_group=$1&dde_page=$2 [PT] RewriteRule links_add(.*).html$ index.php?action=links&dde_action=add&dde_group=$1 [PT] RewriteRule banner_(.*).html$ index.php?action=banner&id=$1 [PT] # start page RewriteRule index.html$ index.php [PT] RewriteRule testing.html$ index.php?action=testing [PT] # sitemap RewriteCond %{REQUEST_URI} sitemap-([a-zA-Z0-9дцьДцьЯ]*)\.html$ [NC] RewriteRule ^sitemap-(.*)\.html$ index.php?action=sitemap&letter=$1 [L,QSA] Заранее благодарю Вас за помощь! |
| smallcms Участник 2752 |
# Дата: 20 Июн 2006 16:32 закинь в папки-исключения .htaccess со следующим правилом: RewriteEngine on RewriteBase / RewriteRule index.html$ index.html |
| linq1 Участник 2 |
# Дата: 21 Июн 2006 01:56 закинул не помогает |
|
Powered by miniBB forum software © 2001-2008
Powered by miniBB-gzipper. Original size:25343, gzipped size:7814 |