Очень срочно!!! Нужна помощь.

Автор 10pik, 21-07-2012, 00:39:03

« назад - далее »

10pikTopic starter

Ребята всем привет. Срочно нужна помощь. Установил новый шаб быстрым стартом. После установки двига все норм. Сайт работал. Потом я сделал несколько действий:
1. Залил в корень Старый роботс и .htaccess
2. В админке поставил сайт в ОФФлайн и включил Перенаправление URL.
Потом я обновил страницу сайта и он не работает. Пытался все вернуть назад, но все равно ошибка. Вот сайт http://www.fenix-sport.ru  Помогите пожалуйста.

Добавлено: 21-07-2012, 00:41:13


Только что написал URL как на демо http://www.fenix-sport.ru/index.php/en/ и сайт открылся, но это не решение проблемы. Как быть?

Добавлено: 21-07-2012, 01:13:10


Т.е. на сколько я понял, то, что я сделал на сайт не повлияло. Просто он и до этого не работал если заходить вот так http://www.fenix-sport.ru/
Что делать? кто знает, как сделать, что бы сайт открывался по адресу http://www.fenix-sport.ru/


Dagot

Скорее всего файл .htaccess не правильный. Замените на стандартный и проверьте. И скиньте сюда текст вашего .htaccess
Рекламное агентство PromoDrive Киев | доставка воды по Киеву здесь
  •  


10pikTopic starter

Заменис этот файл и помогло. Но вот только ссылка имеет вид не http://fenix-sport.ru/ а http://fenix-sport.ru/index.php/en/  и это не хорошо. Как это исправить?
Вот текст файла .htaccess:
[spoiler]##
# @package      Joomla
# @copyright   Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license      GNU General Public License version 2 or later; see LICENSE.txt
##

##
# 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.fenix-sport\.ru
RewriteRule ^(.*)$ http://fenix-sport.ru/$1 [R=permanent,L]

## 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 base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# 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.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
[/spoiler]

Dagot

Чтобы убрать index.php/en идите в Расширения>Менеджер языков и там выбираете Русский язык по умолчанию.
Чтобы правильно работал 301 редирект с www должен быть такой код у вас в файле .htaccess:
Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.fenix-sport\.ru$ [NC]
RewriteRule ^(.*)$ http://fenix-sport.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
# 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 data within the URL
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
########## 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
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
Рекламное агентство PromoDrive Киев | доставка воды по Киеву здесь
  •  

10pikTopic starter

Цитата: Dagot от 21-07-2012, 21:05:30Чтобы убрать index.php/en идите в Расширения>Менеджер языков и там выбираете Русский язык по умолчанию.

Так русский и стоит по умолчанию


Dagot

Значит отключите плагин Фильтр Языка
Рекламное агентство PromoDrive Киев | доставка воды по Киеву здесь
  •  

10pikTopic starter

Огромное спасибо. Помогло.

ewdokimow

10pik, Вам все очень грамотно Dagot расписал. Вы еще robots.txt выложите. Joomla очень любит плодить дубли и их лучше сразу закрыть от индексации.
Андрей
  •  


10pikTopic starter

Да. Он молодец.
Вот роботс:
# If the Joomla site is installed within a folder such as at
# e.g. www.example.com/joomla/ the robots.txt file MUST be
# moved to the site root at e.g. www.example.com/robots.txt
# AND the joomla folder name MUST be prefixed to the disallowed
# path, e.g. the Disallow rule for the /administrator/ folder
# MUST be changed to read Disallow: /joomla/administrator/
#
# For more information about the robots.txt standard, see:
# http://www.robotstxt.org/orig.html
#
# For syntax checking, see:
# http://www.sxw.org.uk/comрuting/robots/check.html

User-agent: Yandex
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /libraries/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /xmlrpc/
Disallow: /index2.php?option=com_content&task=emailform
Disallow: /*?sl*
Disallow: /index.php?*
Disallow: *.pdf$
Disallow: /name.php?action=print
Disallow: /trackback
Disallow: /*rss.html
Disallow: /*atom.html
Crawl-delay: 2
Host: site.ru
Sitemap: http://fenix-sport.ru/index.php?option=com_xmap&sitemap=1&view=xml
User-agent: *
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /libraries/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /xmlrpc/
Disallow: /index2.php?option=com_content&task=emailform
Disallow: /*?sl*
Disallow: /index.php?*
Disallow: *.pdf$
Disallow: /name.php?action=print
Disallow: /trackback
Disallow: /*rss.html
Disallow: /*atom.html
Crawl-delay: 2
Sitemap: http://fenix-sport.ru/index.php?option=com_xmap&sitemap=1&view=xml


ewdokimow

На вскидку:
пропишите host не только для Яндекса (и укажите свой сайт)
Crawl-delay: 2 - Гугл не учитывает, можете убрать

пробелами разделите правила для Яндекса и для других ПС.
ЧПУ у Вас есть?

Андрей
  •