We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42188
    • 7 Posts
    Теперь при запросе
    Internal Server Error
    при установке ht.access был переименован в .htaccess
    я сейчас покопался в папке manager в нем тоже есть ht.access его не трогать?
    А вот содержимое файла .htaccess (modx/www)

    # For full documentation and other suggested options, please see
    # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
    # including for unexpected logouts in multi-server/cloud environments
    # and especially for the first three commented out rules
    
    #php_flag register_globals Off
    #AddDefaultCharset utf-8
    #php_value date.timezone Europe/Moscow
    
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /modx
    
    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    
    # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
    #RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    
    # Exclude /assets and /manager directories and images from rewrite rules
    RewriteRule ^(manager|assets)/*$ - [L]
    RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
    
    # For Friendly URLs
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    
    # Reduce server overhead by enabling output compression if supported.
    #php_flag zlib.output_compression On
    #php_value zlib.output_compression_level 5


    (а вот содержимое error.log)
    когда делаю запрос:
    [Tue Dec 04 13:28:02 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://modx/
    [Tue Dec 04 13:28:02 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://modx/
    [Tue Dec 04 13:28:04 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://modx/
    [Tue Dec 04 13:28:04 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://modx/

    А как собственно отключить ЧПУ?
      • 42188
      • 7 Posts
      Quote from: Tohin at Dec 04, 2012, 01:59 AM
      ИМХО тут косяк денвера в обработке ЧПУ.
      Вижу 2 пути:
      1. Простой: Отключите на время разработки ЧПУ. Потом на хостинге подключите.
      2. Разбирайтесь по error.log почему ЧПУ не работает. (например ht.access переименован?)
      Совершенно верно!
      Уважаемый Tohin.
      Я сделал вот как,
      по новой установил Denwer.
      Шаблон главной страницы
      <html>
      <head>
      <base href="[(site_url)]" /> 
      </head>
      <body>
      <p>{{BANNER}}</p>
      <table border="1" width="100%">
      {{TABLE}}
         <!---таблица вида: два столбца код: 
           (<table border="1" width="100%">
             <tbody>
               <tr>
                 <td height="900" valign="top" width="17%">{{MENU}}
                   <td align="center" valign="top" width="83%">{{CONTENT}}</td>
                 </tr>
              </tbody>
         </table>)---!>
      </tbody>
      </table>
      <p>{{FOOTER1}}</p>
      <div> </div>
      </body>
      </html>


      А вот шаблон моего дерева меню:
      {{BANNER}}
      {{TABLE}}
      {{FOOTER1}}

      и чанк {{CONTENT}}
      <div id="content">
      [*content*]
      </div>
      Все работает, все запускается, Благодарю за поддержку кто откликнулся.
      ВСЕХ БЛАГ!!!!
        • 44894
        • 7 Posts
        Привет Tohin.
        Подскажи пжл. Я пытаюсь проработать создание галлереи, столкнулся с проблемой, после создания рут страницы каталога товаров, падают все CSS и на этой странице и в дочерних документах. После разбора пришел к выводу что проблема с правильными урлами. Каталог и дочерние приобретают темплейт страницы каталога, все необходимые чанки я создал заранее. при просмотре страницы каталога она выходит в виде "/catalog/" дочерние "/catalog/page1.html" но у всех слетают CSS. после отключения ЧПУ отображается норм. В чем проблема? и куда копать???