Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 6 Ответов
  • 1734 Просмотров
*

tatarlar

  • Новичок
  • 5
  • 0 / 0
Проблема .htaccess
« : 26.11.2010, 08:48:32 »
подскажите.
Как правильно настроить htaccess.при правке с htaccess на .htaccess на серваке 500 ошибка.Сайт на платном хостинге.Писал админом,говорят что неправильно настроил htaccess
*

jem777

  • Завсегдатай
  • 1666
  • 119 / 2
Re: Проблема .htaccess
« Ответ #1 : 26.11.2010, 08:51:27 »
Закомментируйте Options +FollowSymLinks так:
Код
#Options +FollowSymLinks
*

tatarlar

  • Новичок
  • 5
  • 0 / 0
Re: Проблема .htaccess
« Ответ #2 : 26.11.2010, 08:53:48 »
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

AddHandler x-httpd-php .php5 .html .htm
#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your SEF url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
#Options +FollowSymLinks

#
  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

 RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
*

tatarlar

  • Новичок
  • 5
  • 0 / 0
Re: Проблема .htaccess
« Ответ #3 : 26.11.2010, 08:54:11 »
не работает все равно
*

jem777

  • Завсегдатай
  • 1666
  • 119 / 2
Re: Проблема .htaccess
« Ответ #4 : 26.11.2010, 09:08:12 »
Код
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

AddHandler x-httpd-php .php5 .html .htm
#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your SEF url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##Can be commented out if causes errors, see notes above.
#Options +FollowSymLinks

#mod_rewrite in use

RewriteEngine On

##Здесь надо проверить, нужен ли RewriteBase? Пока его закомментировал.
#RewriteBase /

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)
 
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
*

dynamit

  • Завсегдатай
  • 1744
  • 265 / 0
  • Winter Is Coming
Re: Проблема .htaccess
« Ответ #5 : 26.11.2010, 09:13:28 »
Код
#
  mod_rewrite in use
на
Код
#  mod_rewrite in use
ТАМ ГДЕ ТЫ НИЧЕГО НЕ МОЖЕШЬ, ТЫ НЕ ДОЛЖЕН НИЧЕГО ХОТЕТЬ
==========================================================
Сайты на Joomla!. Верстка. Консультации.  ||  Яндекс уже не ищет, он уже продает (с)  ||    Создание шаблона для Joomla 2.5
*

jem777

  • Завсегдатай
  • 1666
  • 119 / 2
Re: Проблема .htaccess
« Ответ #6 : 26.11.2010, 09:20:07 »
Угу. Топикстартер уже отписался. Заработало.))
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как склеить www.домен.ru и домен.ru в файле .htaccess

Автор fresh3

Ответов: 18
Просмотров: 73209
Последний ответ 30.06.2024, 17:26:38
от wishlight
Проблема с редиректом

Автор cher68

Ответов: 2
Просмотров: 3618
Последний ответ 03.08.2019, 18:46:28
от cher68
Проблема с генерацией нового пароля взамен забытого старого в 1.5.16-1.5.17?

Автор ecolora

Ответов: 30
Просмотров: 29776
Последний ответ 08.12.2017, 12:25:27
от Masha2245
Проблема Кэширование в Joomla 1.5.26

Автор berTalino

Ответов: 6
Просмотров: 2064
Последний ответ 02.08.2017, 15:31:50
от berTalino
Проблема со стилями в шапке сайта

Автор cps83

Ответов: 2
Просмотров: 1603
Последний ответ 09.08.2016, 11:14:00
от cps83