M
M
Mikhail Mirgorodsky2020-02-26 09:26:10
Joomla
Mikhail Mirgorodsky, 2020-02-26 09:26:10

How to configure Robots.txt - My City Selector Joomla Extension?

Developer writes:

For Apache, in the ".htaccess" file, add the line:
RewriteRule ^robots.txt$ /components/com_mycityselector/robots.txt.php [QSA,L]

Okay, I add, I get 404 at the output when I ask that same site.ru/robots.txt, I went to figure it out, using a direct link 404, I want to see the components/com_mycityselector/robots.txt.php file, and it says it’s impossible to open it, the encoding is not well-known ... after some manipulations with google, I found an online editor that could open this file for me, but there are rhombuses for the most part with incomprehensible symbols, ala questions and all sorts of heresy, + some code:
<?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);
?>

How to make it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Mirgorodsky, 2020-02-27
@PiZZaDoXa

The decision is found, zapara was in htaccess other rule closed access.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question