За последние 24 часа нас посетили 52624 программиста и 1803 робота. Сейчас ищут 829 программистов ...

Файл htaccess

Тема в разделе "Прочие вопросы по PHP", создана пользователем Василий Борисов, 22 фев 2011.

  1. Василий Борисов

    Василий Борисов Активный пользователь

    С нами с:
    22 фев 2011
    Сообщения:
    11
    Симпатии:
    0
    Вопрос такого плана.

    Устанавливаю скрипт доски объявлений jockerboard в главную директорию .

    Все работает на УРА!

    При установке в директорию /board/ или любую другую - главная страница открывается, все остальные ссылки тип site.ru/board/1.htm или 35.htm вызывают ошибку 404.

    Пробовал на разных хостингах, на joomle и без нее. Одно и то же.

    В файле htaccess понял, что идет замена станд ссылок на seo .

    Помогите исправить проблему.

    Файл htacess скрипта такой:

    AddDefaultCharset UTF-8
    Options -Indexes
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/x-javascript
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch Konqueror no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    </IfModule>


    php_flag register_globals off
    php_flag magic_quotes_gpc off
    php_flag magic_quotes_runtime off
    #php_flag display_errors off
    php_value display_errors 1
    php_value error_reporting 2047


    RewriteEngine on
    RewriteBase /


    RewriteRule code.gif core/antirobot.php
    RewriteRule flymail-([0-9]+).png core/flymail.php?id_mess=$1
    RewriteRule ^login.html$ index.php?op=account&act=login
    RewriteRule ^logout.html$ index.php?op=account&act=logout
    RewriteRule ^register.html$ index.php?op=account&act=register
    RewriteRule ^newpass.html$ index.php?op=account&act=newpass
    RewriteRule ^accept,([0-9]+),([-a-zA-Z0-9_=]+)$ index.php?op=account&act=newpass&accept=yes&usid=$1&hash=$2
    RewriteRule ^accept_rules.html$ index.php?op=cpanel&act=accept_rules
    RewriteRule ^profile.html$ index.php?op=cpanel&act=profile
    RewriteRule ^cpanel.html$ index.php?op=cpanel
    RewriteRule ^cpanel-p([0-9]+).html$ index.php?op=cpanel&page=$1
    RewriteRule ^cpanel-([0-9]+)-edit.html$ index.php?op=cpanel&group=edit&id_mess=$1
    RewriteRule ^cpanel-([0-9]+)-del.html$ index.php?op=cpanel&group=del&id_mess=$1
    RewriteRule ^cpanel-([0-9]+)-prolongation.html$ index.php?op=cpanel&group=prolongation&id_mess=$1
    RewriteRule ^cpanel-del.html$ index.php?op=cpanel&group=del
    RewriteRule ^goto-([0-9]+).html$ core/redirect.php?id=$1
    RewriteRule ^ru.html$ core/changelang.php?l=ru
    RewriteRule ^en.html$ core/changelang.php?l=en
    RewriteRule ^city.html$ core/changecity.php
    RewriteRule ^newlist.html$ index.php?op=newlist
    RewriteRule ^newlist-p([0-9]+).html$ index.php?op=newlist&page=$1
    RewriteRule ^c([0-9]+).html$ index.php?id_cat=$1
    RewriteRule ^c([0-9]+)-p([0-9]+).html$ index.php?id_cat=$1&page=$2
    RewriteRule ^c([0-9]+)-([0-9]+).html$ index.php?id_cat=$1&id_mess=$2
    RewriteRule ^new.html$ index.php?op=add
    RewriteRule ^([0-9]+)-new.html$ index.php?op=add&cat=$1
    RewriteRule ^print([0-9]+)-([0-9]+).html$ index.php?op=print&id_cat=$1&id_mess=$2
    RewriteRule ^vip([0-9]+).html$ index.php?op=vip&id_mess=$1
    RewriteRule ^note.html$ index.php?op=note
    RewriteRule ^note-p([0-9]+).html$ index.php?op=note&page=$1
    RewriteRule ^noteprint.html$ index.php?op=noteprint
    RewriteRule ^informers.html$ index.php?op=informers
    RewriteRule ^rss.html$ index.php?op=rss_export
    RewriteRule ^search.html$ index.php?op=search
    RewriteRule ^contacts.html$ index.php?op=contacts
    RewriteRule ^news.html$ index.php?op=news
    RewriteRule ^news-p([0-9]+).html$ index.php?op=news&page=$1
    RewriteRule ^n([0-9]+)-([-a-zA-Z0-9_]+).html$ index.php?op=news&id=$1&title=$2
    RewriteRule ^addnews.html$ index.php?op=addnews
    RewriteRule ^p([0-9]+).html$ index.php?op=content&id=$1
    RewriteRule ^success.html$ a/pay.php?action=success
    RewriteRule ^fail.html$ a/pay.php?action=fail
    RewriteRule ^pages/([0-9]+)/?$ p$1.html
    RewriteRule ^advertisement/nesting/([0-9]+)/kind/([0-9]+)/?$ c$1-$2.html
    RewriteRule ^rss/?$ rss.html
    RewriteRule ^contacts/?$ contacts.html
    RewriteRule ^search/?$ search.html
     
  2. titch

    titch Активный пользователь

    С нами с:
    18 дек 2010
    Сообщения:
    847
    Симпатии:
    0
    Попробуйте изменить RewriteBase / на RewriteBase /board/
    Говорю по чуйке, проверить нет возможности, и я с этими модулями не работал
     
  3. Василий Борисов

    Василий Борисов Активный пользователь

    С нами с:
    22 фев 2011
    Сообщения:
    11
    Симпатии:
    0
    Огромное спасибо!

    Помогло!!!!!!!!!
     
  4. titch

    titch Активный пользователь

    С нами с:
    18 дек 2010
    Сообщения:
    847
    Симпатии:
    0
    вот и славненько
     
  5. Василий Борисов

    Василий Борисов Активный пользователь

    С нами с:
    22 фев 2011
    Сообщения:
    11
    Симпатии:
    0
  6. Василий Борисов

    Василий Борисов Активный пользователь

    С нами с:
    22 фев 2011
    Сообщения:
    11
    Симпатии:
    0
    все работает! моя ошибка!