Новости Joomla

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

anri

  • Осваиваюсь на форуме
  • 48
  • 0 / 0
На сколько я понимаю надо раскомментировать  Options +FollowSymLinks
Но как только я его прокомментирую.

Код
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, www@site.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.

Apache/1.3.34 Server at www.site.ru Port 80
*

Diiimonn

  • Захожу иногда
  • 234
  • 29 / 0
Re: 301 редирект не могу реализовать
« Ответ #1 : 24.03.2011, 16:48:06 »
Options +FollowSymLinks разрешает символьные ссылки, к 301 отношения не имеет
Создание расширений для Joomla
Skype: diiimonn
ICQ: 351181332
*

anri

  • Осваиваюсь на форуме
  • 48
  • 0 / 0
Re: 301 редирект не могу реализовать
« Ответ #2 : 24.03.2011, 16:55:06 »
я читал http://joomla-school.com/seo/1018-redirekt-301-s-www-na-bez-www-i-naoborot.html
После "Способ с использованием файла .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
RewriteCond %{HTTP_HOST} ^www\.idealservise.ru\.ru$ [NC]
RewriteRule ^(.*)$ http://idealservise.ru/$1 [R=301,L]

########## 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
*

Diiimonn

  • Захожу иногда
  • 234
  • 29 / 0
Re: 301 редирект не могу реализовать
« Ответ #3 : 24.03.2011, 17:08:05 »
похоже ошибочка
RewriteCond %{HTTP_HOST} ^www\.idealservise.ru\.ru$ [NC]
RewriteRule ^(.*)$ http://idealservise.ru/$1 [R=301,L]
Создание расширений для Joomla
Skype: diiimonn
ICQ: 351181332
*

anri

  • Осваиваюсь на форуме
  • 48
  • 0 / 0
Re: 301 редирект не могу реализовать
« Ответ #4 : 24.03.2011, 17:13:49 »
Спасибо, заработало.
Еще вопрос, часть ссылок проиндексировалось как
http://idealservise.ru/index.php?option=com_content&view=article&id=27
не смотря на то что уже 2 месяца есть та же страница как http://idealservise.ru/trubi-polipropilenovie-tena.html
как 301 редиректом перекинуть выборочные страницы.
*

Diiimonn

  • Захожу иногда
  • 234
  • 29 / 0
Re: 301 редирект не могу реализовать
« Ответ #5 : 24.03.2011, 17:19:46 »
если в поиске есть http://idealservise.ru/trubi-polipropilenovie-tena.html на http://idealservise.ru/index.php?option=com_content&view=article&id=27 надо повесить 404 и при следующей индексации она выпадет из поиска.
Создание расширений для Joomla
Skype: diiimonn
ICQ: 351181332
*

anri

  • Осваиваюсь на форуме
  • 48
  • 0 / 0
Re: 301 редирект не могу реализовать
« Ответ #6 : 24.03.2011, 17:23:29 »
Наоборот с article&id=27 на polipropilenovie-tena.htm, по моему чтоб не потерять позиции в поисковике надо делать 301 редирект.
А как повесить 404. Прост сложность еще в том что article&id=27 до сих Яндекс директе рекламируется (то есть посетители могут попадать на article&id=27)
*

Diiimonn

  • Захожу иногда
  • 234
  • 29 / 0
Re: 301 редирект не могу реализовать
« Ответ #7 : 24.03.2011, 17:37:28 »
понятно
самый простой выход, под каждую такую страничку свой редирект ставить, как-то так:
Redirect 301 /index.php?option=com_content&view=article&id=27 http://idealservise.ru/trubi-polipropilenovie-tena.html
Создание расширений для Joomla
Skype: diiimonn
ICQ: 351181332
*

anri

  • Осваиваюсь на форуме
  • 48
  • 0 / 0
Re: 301 редирект не могу реализовать
« Ответ #8 : 24.03.2011, 18:02:55 »
Ок, меня это устраивает .. можно пример как писать в .htaccess
и кстати писать в том же где сейчас делал изменения?
*

Diiimonn

  • Захожу иногда
  • 234
  • 29 / 0
Re: 301 редирект не могу реализовать
« Ответ #9 : 24.03.2011, 18:36:14 »
пример уже привел, по идее рабочий
внедрять в тот же htaccess

если используете компонент типа sh404SEF, там кажись в настройках есть возможность выставить перенаправления  для всех страниц.
Создание расширений для Joomla
Skype: diiimonn
ICQ: 351181332
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Не могу удалить иконку поделиться в соц сетях

Автор kirill-juk

Ответов: 0
Просмотров: 1216
Последний ответ 03.11.2016, 16:08:53
от kirill-juk
Как сделать редирект у всех урезанных url?

Автор NlCK

Ответов: 1
Просмотров: 1341
Последний ответ 03.10.2016, 22:35:23
от SeBun
Правильный редирект части сайта

Автор Escander

Ответов: 0
Просмотров: 1089
Последний ответ 11.08.2016, 16:19:56
от Escander
Не могу сделать кликабельной шапку сайта

Автор Zegeberg

Ответов: 29
Просмотров: 2027
Последний ответ 21.06.2016, 13:02:48
от Zegeberg
Не могу избавиться от урлов с параметрами

Автор wings_fury

Ответов: 4
Просмотров: 1232
Последний ответ 29.10.2015, 04:05:42
от Филипп Сорокин