@PiZZaDoXa
Учусь WEBу

Как настроить Robots.txt — My City Selector Joomla Extension?

Разраб пишет :
Для Apache в файле ".htaccess" добавьте строку :
RewriteRule ^robots.txt$ /components/com_mycityselector/robots.txt.php [QSA,L]

Окей, добавляю, на выходе получаю 404 при просе того самого сайт.ру/robots.txt, пошёл разбираться, по прямой ссылке 404, хочу посмотреть файл components/com_mycityselector/robots.txt.php, а там пишет открыть не возможно, кодировка не известная ... после недолгих манипуляций с google нашёл онлайн редактор, который смог открыть мне этот файл, но там ромбики по большей степени с непонятными символами ала вопросики и всякой ересью, + немного кода :
<?php //00576
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted. Ensure that you use binary mode when transferring files with FTP and disable the 'TAR smart cr/lf feature' if using WinZIP\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199);
?>

Как заставить работать ?
  • Вопрос задан
  • 170 просмотров
Решения вопроса 1
@PiZZaDoXa Автор вопроса
Учусь WEBу
Решение найдено, запара была в htaccess другое правило закрывало доступ.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы