C
C
chetverukhin2014-08-27 21:00:35
PHP
chetverukhin, 2014-08-27 21:00:35

Server load (how to get rid of index.php)?

Hello, I will be very grateful if you help.
Got from one patient joomla 1.5, which terribly loads the server. Here is actually a screenshot from Putty, I think this is the problem: https://yadi.sk/i/hIvAOrzpaY4t7
But how to get rid of it? Something tells me that he cheated somewhere in .htaccess. Just in case, I will attach only the current lines from it below. The bottom lines, although they look strange, are contained in a standard Joomla file.
I thought to get rid of the problem by adding

<Files "index.php/">
deny from all
</Files>

but for some reason he does not cut down these links.
Actually, on the site itself, you can see all these creepy URLs really work: biznes-prodaj.ru. Unfortunately, I cannot turn on the CNC or somehow change the links, because then the traffic from the search engines will be cut off. It is necessary to remove this recursion, or whatever it is.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Redirect /index.php/component/content/article/12 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=12
Redirect /index.php/component/content/article/13 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=13
Redirect /index.php/component/content/article/14 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=14
Redirect /index.php/component/content/article/15 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=15
Redirect /index.php/component/content/article/16 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=16
Redirect /index.php/component/content/article/17 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=17
Redirect /index.php/component/content/article/18 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=18
Redirect /index.php/component/content/article/19 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=19
Redirect /index.php/component/content/article/20 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=20
Redirect /index.php/component/content/article/21 http://biznes-prodaj.ru/index.php?option=com_content&view=article&id=21
Redirect /index.php/bizness/archiv http://biznes-prodaj.ru/index.php?option=com_mtree&task=editcat&cat_id=78

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Voronov, 2014-08-27
@Alcorec

Leave the redirects, and take the .htaccess file from the distribution.

K
KorsaR-ZN, 2014-08-27
@KorsaR-ZN

Yes, as mentioned above, take your native .htaccess and enable the "URL Redirect" item in the settings - /administrator/index.php?option=com_config

C
chetverukhin, 2014-08-28
@chetverukhin

It differed from the file from the distribution kit only by redirects. Redirection and so stood.

X
xmoonlight, 2014-08-28
@xmoonlight

Remove the redirect and process the output of content via curl (simply easier, better via JDOC) on the PHP side, ending with the die() function;
Those. make a "crutch" of redirects like include('redirect.php'); based on $_SERVER['HTTP_REQUEST']...
And forget like a bad dream)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question