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

biilsun

  • Новичок
  • 7
  • 0 / 0
Включил галочку в админке, переименовал файл как там и написано в .htaccess после этого появилась 500 ошибка (сейчас вернул обратно) сайт http://www.fitnessat.com
вот данные .htaccess  где косяк?

##
# @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $
# @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
##


#####################################################
#  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!
#
## Deny access to extension XML files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension XML files
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
*

era

  • Администратор
  • 1587
  • 391 / 5
  • В туалете лучше быть пользователем, чем админом.
*

biilsun

  • Новичок
  • 7
  • 0 / 0
как точно проверить есть ограничения или нет?
в панели управления есть настройки mod_rewrite только
Enable Host authentication
Enable Redirection wrong URLs to other web server:
Enable Redirection by Language
Enable Block sites by referrer
*

era

  • Администратор
  • 1587
  • 391 / 5
  • В туалете лучше быть пользователем, чем админом.
*

high_spirit

  • Осваиваюсь на форуме
  • 11
  • 1 / 0
Мне помогло в . htaccess раскомментить строку RewriteBase /
и все заработало!
*

LOMANI

  • Новичок
  • 9
  • 0 / 0
Мне помогло в . htaccess раскомментить строку RewriteBase /
и все заработало!
мне это то же помогло, не заметная строчка, а так много решает =)
*

Igoritaly

  • Давно я тут
  • 659
  • 2 / 0
Мне помогло в . htaccess раскомментить строку RewriteBase /
и все заработало!
С помощью чего открываете файл . htaccess?
*

danik.html

  • Живу я здесь
  • 2650
  • 353 / 4
С помощью платного 10гигабайтового редактора htaccessEditor.
Шутка. это обычный текстовый файл. Правится простым блокнотом ;)
【Мегапак Virtuemart:
 • метатеги (description,keywords)
 • заголовки (title)
 • красивые алиасы (чпу) без тормозов и дублей!
*

Igoritaly

  • Давно я тут
  • 659
  • 2 / 0
С помощью платного 10гигабайтового редактора htaccessEditor.
Шутка. это обычный текстовый файл. Правится простым блокнотом ;)
Ок спасибо) просто на домашнем компе даже с помощью блокнота не открывался. А не подскажешь как его править нужно? У меня после установки JoomSEF, и включения нужных настроек при переходе на любую страницу (кроме главной) ошибка 500 выходит.Версия 3.7.4
*

nober

  • Захожу иногда
  • 155
  • 1 / 1
Ребят а у меня не выходит ни чего (
*

Taatshi

  • Глобальный модератор
  • 5258
  • 481 / 2
  • Верстаем и кодим. Обращайтесь ;)
Неужели народ спрашивает вот про это:

правой кнопкой мышки на файле - открыть с помощью - выбрать блокнот(((

Надеюсь, у меня глюки после рабочего дня  и общения с партнерами-шизоидами(((
ВЕРСТКА, САЙТЫ ПОД КЛЮЧ, УДАЛЕНИЕ ВИРУСОВ, МИГРАЦИЯ НА JOOMLA 3, ОБНОВЛЕНИЕ  |  ОТЗЫВЫ 
Связь: telegram - Taatshi, почта - Taatshi на яндексе, Skype - Taatshi
*

nober

  • Захожу иногда
  • 155
  • 1 / 1
скиньте готовый код, который можно залить в htaccess
*

Taatshi

  • Глобальный модератор
  • 5258
  • 481 / 2
  • Верстаем и кодим. Обращайтесь ;)
Раскомментировать - это значит убрать вот эту штучку - # - в начале строки. Какую строку раскомментировать, вам уже написали.

Упс... забыла...

ДЕЛАЙТЕ БЭКАПЫ!)))
ВЕРСТКА, САЙТЫ ПОД КЛЮЧ, УДАЛЕНИЕ ВИРУСОВ, МИГРАЦИЯ НА JOOMLA 3, ОБНОВЛЕНИЕ  |  ОТЗЫВЫ 
Связь: telegram - Taatshi, почта - Taatshi на яндексе, Skype - Taatshi
*

letout

  • Осваиваюсь на форуме
  • 25
  • 0 / 0
А у меня после включения SEO сайт заработал, но при переходе по любому пункту в меню ссылка в адресной строке меняется на ту, которая положена, но вот контент самого сайта остаётся на странице по умолчанию. Что, где нужно подправить?
*

gipopo

  • Захожу иногда
  • 56
  • 1 / 0
Мне помогло в . htaccess раскомментить строку RewriteBase /
и все заработало!

Люди !
Как раскоментировать строку RewriteBase / ?
У меня уже дым из ушей
с .htaccess выдает 500 Internal Server Error
Вот  .htaccess
##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  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!
#
## Deny access to extension XML files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension XML files
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
*

deVetal

  • Захожу иногда
  • 76
  • 12 / 0
Дык писали же уже:
Раскомментировать - это значит убрать вот эту штучку - # - в начале строки.
в строке # RewriteBase /
*

gipopo

  • Захожу иногда
  • 56
  • 1 / 0

Люди !
Как раскоментировать строку RewriteBase / ?
У меня уже дым из ушей
с .htaccess выдает 500 Internal Server Error
Вот  .htaccess
##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  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!
#
## Deny access to extension XML files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension XML files
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

Сама нашла нужно
# Options +FollowSymLinks
*

trekdeks1029

  • Новичок
  • 2
  • 0 / 0
Здравствуйте, переименовал файл, раскоментил, хостер говорит что mod_rewrite поддерживает.... но выдает ошибку 404 страницы не существует, помогите пожалуйста!
*

trekdeks1029

  • Новичок
  • 2
  • 0 / 0
Здравствуйте, переименовал файл, раскоментил, хостер говорит что mod_rewrite поддерживает.... но выдает ошибку 404 страницы не существует, помогите пожалуйста!
сори поставил точку перед htaccess и все стало на свои места.
*

au_23

  • Захожу иногда
  • 70
  • 1 / 0
  • учусь....
gipopo респект! помогло
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Редирект со страниц *.php на главную через htaccess ~

Автор kiev

Ответов: 0
Просмотров: 1448
Последний ответ 07.02.2021, 15:29:04
от kiev
Как подружить sh404SEF с поддоменом через htaccess на httpS?

Автор Dim

Ответов: 0
Просмотров: 1310
Последний ответ 10.12.2018, 23:23:03
от Dim
как переименовать htaccess.txt в .htaccess

Автор Human

Ответов: 6
Просмотров: 7969
Последний ответ 24.04.2016, 23:52:46
от максим1889
Как убрать.html на конце не через htaccess?

Автор Karyuudo

Ответов: 2
Просмотров: 2703
Последний ответ 04.12.2015, 07:27:45
от Филипп Сорокин
Joomla, 2 домена и.htaccess

Автор promca

Ответов: 10
Просмотров: 1463
Последний ответ 30.07.2014, 21:12:39
от promca