Помощник
|
![]() |
![]() |
Сообщение
#1
|
||
![]() |
|
||
|
|||
![]() |
![]()
Сообщение
#2
|
![]() |
Подскажите, считается ли mysite.ru/index.php дублем главной страницы? да Стоит ли его закрывать от индексации? нет, желательно настроить 301 редирект с /index.php на корень сайта / Disallow: /index.php/ Disallow: /index.php* бред, нужен стандартный 301 редирект |
|
|
![]() |
Сообщение
#3
|
![]() |
да нет, желательно настроить 301 редирект с /index.php на корень сайта / бред, нужен стандартный 301 редирект В итоге я так и сделал. Вы извините за мою неграмотность, ниже выложу свой .htaccess Я в первых 2 частях сделал редирект с index.php и home на главную страницу, но проблема с mysite.ru/index.php/slovo.htm и mysite.ru/slovo.htm осталась . Для каждой страницы нереально прописывать редирект. В итоге я решил оставить в robots.txt строку Disallow: /index.php/ . Есть ли другой выход. Развернуть/Свернуть
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://v-internete-rabota.ru/ [R=301,L] #######skleyka index.php RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /home\ HTTP/ RewriteRule ^index\.php$ http://v-internete-rabota.ru/ [R=301,L] #######skleyka home ## # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $ # @package Joomla # @copyright Copyright © 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! # # 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 ############# Use this section if using ONLY Joomla! core SEF ## ALL (RewriteCond) lines in this section are only required if you actually ## have directories named 'content' or 'component' on your server ## If you do not have directories with these names, comment them out. # #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] #RewriteRule ^(content/|component/) index.php # ########## End - Joomla! core SEF Section ########## Begin - 3rd Party SEF Section ############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php # ########## End - 3rd Party SEF Section -------------------- |
|
|
![]() |
![]()
Сообщение
#4
|
![]() |
PzdcWtf,склейка верная. Насчет disallow не согласен. Зачем закрывать?? У вас на сайте есть директория /index.php/ ????
|
|
|
![]() |
Сообщение
#5
|
![]() |
PzdcWtf,склейка верная. Насчет disallow не согласен. Зачем закрывать?? У вас на сайте есть директория /index.php/ ???? Ну а если оставить просто без "/" Disallow: /index.php ? А еще такая мысль без robots.txt. У меня сейчас с сайта нет не одной ссылки с index.php, не пропадут ли из индекса "левые" сами по себе? Или все же боты будут упорно обновлять свой индекс проходя по старым из своей БД? Ведь они будут доступны. -------------------- |
|
|
![]() |
![]()
Сообщение
#6
|
![]() |
PzdcWtf есть файл .htaccess для джумлы полностью настроенный со всеми редиректами, если интересно пишите в ЛС вышлю, может поможет и вам.
|
|
|
![]() |
Сообщение
#7
|
![]() |
PzdcWtf есть файл .htaccess для джумлы полностью настроенный со всеми редиректами, если интересно пишите в ЛС вышлю, может поможет и вам. СПАСИБО ВАМ ОГРОМНОЕ!!! 2 дня и 2 бессонные ночи!!! И тут в один момент, все решилось! СПАСИБО ВСЕ ПОМОГЛО!!! -------------------- |
|
|
![]() |
![]()
Сообщение
#8
|
![]() |
да я тоже повозился, именно замучил редирект с site/index.php/catalog на site/catalog
|
|
|
![]() |
![]()
Сообщение
#9
|
![]() |
Может поможете еще одному с этой же проблемой, где найти этот заветный .htaccess для джумлы, а то надо поменять site/index.php/categoria на site/categoria
|
|
|
![]() |
![]()
Сообщение
#10
|
![]() |
|
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
![]() |
![]() Создание модулей и хаков для DLE и других движков, перенос контента |
173 | Coppermine | 104778 | 31.7.2022, 19:22 автор: Coppermine |
![]() |
![]() |
49 | qpPeW | 36069 | 21.2.2022, 17:47 автор: EnotPF |
![]() |
Ищу программиста PHP + Wordpress + ACF нужен программист для переодических доработок сайта |
1 | coremission | 936 | 8.2.2022, 19:23 автор: moxtima |
![]() |
Услуги разработки Php, Wordpress, Laravel | 0 | a11igator | 1238 | 1.10.2021, 16:11 автор: a11igator |
![]() |
PHP программист Предлагаю услуги php разработчика |
2 | maxmalahin | 1223 | 5.7.2021, 15:08 автор: otrezal |
![]() |
Текстовая версия | Сейчас: 10.8.2022, 10:08 |