Joomla 1.5 После переноса на хостинг, сайт не загружает index.php автоматом, только \index.php

Тема в разделе "Перенос Joomla на хостинг и проблемы с хостингом", создана пользователем boneshaker, 07.07.2011.

  1. Offline

    boneshaker Недавно здесь

    Регистрация:
    08.06.2011
    Сообщения:
    18
    Симпатии:
    0
    Пол:
    Мужской
    Вот такая вот проблема, Ошибка 6 (net::ERR_FILE_NOT_FOUND): Не удалось найти файл или каталог. Вот что написал хром. Мод реврайт не помогает.
     
  2.  
  3. joomguru
    Offline

    joomguru Модератор => Cпециалист <=

    Регистрация:
    03.12.2010
    Сообщения:
    456
    Симпатии:
    77
    Пол:
    Мужской
    В .htaccess что там? допиши если что DirectoryIndex index.php
     
  4. Offline

    boneshaker Недавно здесь

    Регистрация:
    08.06.2011
    Сообщения:
    18
    Симпатии:
    0
    Пол:
    Мужской
    Код (PHP):
    1. ##
    2. # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
    3. # @package Joomla
    4. # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
    5. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
    6. # Joomla! is Free Software
    7. ##
    8.  
    9.  
    10. #####################################################
    11. #  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
    12. #
    13. # The line just below this section: 'Options +FollowSymLinks' may cause problems
    14. # with some server configurations.  It is required for use of mod_rewrite, but may already
    15. # be set by your server administrator in a way that dissallows changing it in
    16. # your .htaccess file.  If using it causes your server to error out, comment it out (add # to
    17. # beginning of line), reload your site in your browser and test your sef url's.  If they work,
    18. # it has been set by your server administrator and you do not need it set here.
    19. #
    20. #####################################################
    21.  
    22. ##  Can be commented out if causes errors, see notes above.
    23. Options +FollowSymLinks
    24.  
    25. #
    26. #  mod_rewrite in use
    27.  
    28.  
    29. # ESLI NA SAITE BELIY EKRAN - RASKOMMENTIROVAT' STROKU NIZHE
    30. #  php_value display_errors 1
    31.  
    32. RewriteEngine On
    33.  
    34. ########## Begin - Rewrite rules to block out some common exploits
    35. ## If you experience problems on your site block out the operations listed below
    36. ## This attempts to block the most common type of exploit `attempts` to Joomla!
    37. #
    38. # Block out any script trying to set a mosConfig value through the URL
    39. RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    40. # Block out any script trying to base64_encode crap to send via URL
    41. RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    42. # Block out any script that includes a <script> tag in URL
    43. RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    44. # Block out any script trying to set a PHP GLOBALS variable via URL
    45. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    46. # Block out any script trying to modify a _REQUEST variable via URL
    47. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    48. # Send all blocked request to homepage with 403 Forbidden error!
    49. RewriteRule ^(.*)$ /index.php [F,L]
    50. #
    51. ########## End - Rewrite rules to block out some common exploits
    52.  
    53. #  Uncomment following line if your webserver's URL
    54. #  is not directly related to physical file paths.
    55. #  Update Your Joomla! Directory (just / for root)
    56.  
    57. # RewriteBase /
    58.  
    59.  
    60. ########## Begin - Joomla! core SEF Section
    61. #
    62. AddDefaultCharset UTF-8
    63. RewriteCond %{REQUEST_FILENAME} !-f
    64. RewriteCond %{REQUEST_FILENAME} !-d
    65. RewriteCond %{REQUEST_URI} !^/index.php
    66. RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
    67. RewriteRule (.*) /index.php
    68. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    69. #
    70. ########## End - Joomla! core SEF Section


    Вот код

    Прописал DirectoryIndex index.php
    выдал

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@meta-vrn.ru and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Кажется сервер упал.
     
    Последнее редактирование: 07.07.2011
  5. joomguru
    Offline

    joomguru Модератор => Cпециалист <=

    Регистрация:
    03.12.2010
    Сообщения:
    456
    Симпатии:
    77
    Пол:
    Мужской
    Вот какой код должен быть -
    Код (PHP):
    1. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    2. #
    3. # Если запрошенный путь и файл не содержат /index.php и запрос еще
    4. # не был перенаправлен на скрипт index.php
    5. RewriteCond %{REQUEST_URI} !^/index\.php
    6. # и запрашивается URL корня или расширения, или
    7. # запрашиваемый URL оканчивается на одно из перечисленных расширений
    8. RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC]
    9. # и запрошенный путь не соответствует пути к физическому файлу
    10. RewriteCond %{REQUEST_FILENAME} !-f
    11. # и запрошенный путь не соответствует пути к физической папке
    12. RewriteCond %{REQUEST_FILENAME} !-d
    13. # то перенаправить запрос на скрипт index.php
    14. RewriteRule .* index.php [L]


    вместо
    Код (PHP):
    1. RewriteCond %{REQUEST_FILENAME} !-f
    2. RewriteCond %{REQUEST_FILENAME} !-d
    3. RewriteCond %{REQUEST_URI} !^/index.php
    4. RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$  [NC]
    5. RewriteRule (.*) /index.php
    6. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
     
  6. Offline

    boneshaker Недавно здесь

    Регистрация:
    08.06.2011
    Сообщения:
    18
    Симпатии:
    0
    Пол:
    Мужской
    как сервер отживеет попробую
     
  7. OlegK
    Offline

    OlegK Russian Joomla! Team Команда форума ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    771
    Пол:
    Мужской
    Убери,на это прав нет.
     
  8. Offline

    boneshaker Недавно здесь

    Регистрация:
    08.06.2011
    Сообщения:
    18
    Симпатии:
    0
    Пол:
    Мужской
    Вернул исходный код, сервак не ожил.
     
  9. Offline

    boneshaker Недавно здесь

    Регистрация:
    08.06.2011
    Сообщения:
    18
    Симпатии:
    0
    Пол:
    Мужской
    Ничего не помогает, работает всё кроме этого, может дело в хостере? Это кстати всё тажа ошибка 416
     

Поделиться этой страницей

Загрузка...