Помощник
|
Index.php дубль ли? |
smurf777
|
Сообщение
#1
|
||
|
|
||
|
|||
iMessi89 |
11.6.2013, 7:18;
Ответить: iMessi89
Сообщение
#2
|
|
Подскажите, считается ли mysite.ru/index.php дублем главной страницы? да Стоит ли его закрывать от индексации? нет, желательно настроить 301 редирект с /index.php на корень сайта / Disallow: /index.php/ Disallow: /index.php* бред, нужен стандартный 301 редирект |
|
|
smurf777
|
Сообщение
#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 -------------------- |
|
|
iMessi89 |
11.6.2013, 12:12;
Ответить: iMessi89
Сообщение
#4
|
|
PzdcWtf,склейка верная. Насчет disallow не согласен. Зачем закрывать?? У вас на сайте есть директория /index.php/ ????
|
|
|
smurf777
|
Сообщение
#5
|
|
PzdcWtf,склейка верная. Насчет disallow не согласен. Зачем закрывать?? У вас на сайте есть директория /index.php/ ???? Ну а если оставить просто без "/" Disallow: /index.php ? А еще такая мысль без robots.txt. У меня сейчас с сайта нет не одной ссылки с index.php, не пропадут ли из индекса "левые" сами по себе? Или все же боты будут упорно обновлять свой индекс проходя по старым из своей БД? Ведь они будут доступны. -------------------- |
|
|
sergo777 |
11.6.2013, 13:04;
Ответить: sergo777
Сообщение
#6
|
|
PzdcWtf есть файл .htaccess для джумлы полностью настроенный со всеми редиректами, если интересно пишите в ЛС вышлю, может поможет и вам.
|
|
|
smurf777
|
Сообщение
#7
|
|
PzdcWtf есть файл .htaccess для джумлы полностью настроенный со всеми редиректами, если интересно пишите в ЛС вышлю, может поможет и вам. СПАСИБО ВАМ ОГРОМНОЕ!!! 2 дня и 2 бессонные ночи!!! И тут в один момент, все решилось! СПАСИБО ВСЕ ПОМОГЛО!!! -------------------- |
|
|
sergo777 |
11.6.2013, 13:25;
Ответить: sergo777
Сообщение
#8
|
|
да я тоже повозился, именно замучил редирект с site/index.php/catalog на site/catalog
|
|
|
Disema |
12.4.2014, 18:43;
Ответить: Disema
Сообщение
#9
|
|
Может поможете еще одному с этой же проблемой, где найти этот заветный .htaccess для джумлы, а то надо поменять site/index.php/categoria на site/categoria
|
|
|
iMessi89 |
12.4.2014, 19:07;
Ответить: iMessi89
Сообщение
#10
|
|
|
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
СОЗДАНИЕ : / САЙтЫ / ЛЕНДЫ / БОТЫ ТГ / ВАЙТЫ / КРЕО / СОФТЫ / ДИЗАЙН [PHP, JS, HTML/CSS] и другое | 5 | CULA | 3429 | 19.12.2023, 18:55 автор: CULA |
|
Услуги по созданию и доработке скриптов PHP, MySQL, JavaScript, jQuery Разработка сайтов и сервисов под-ключ |
0 | alexey | 1246 | 24.11.2023, 14:46 автор: alexey |
|
Веб-разработка (HTML5, CSS3, JavaScript, jQuery, Ajax, PHP) | 56 | qpPeW | 44948 | 19.7.2023, 10:03 автор: qpPeW |
|
Есть спецы по php/laravel? | 3 | Mixatraider | 1894 | 26.5.2023, 20:48 автор: Mixatraider |
|
Опытный PHP\Python разработчик в поиске интересных задач | 6 | daikzlex | 3409 | 25.5.2023, 13:55 автор: daikzlex |
Текстовая версия | Сейчас: 26.4.2024, 2:22 |