N
N
nSnayp2014-07-04 16:36:33
PHP
nSnayp, 2014-07-04 16:36:33

CNC on the technical domain. How to solve the problem?

There is a rewrite:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^script/([a-z]*)/([a-z]*)?$ script.php?catalog=$1&page=$2 [QSA]

On the old hosting works with a bang.
Transferred to a new one - I open from those domains and fail ...
The rest of the regular seasons work, except for this one.
If you open /script.php in a browser, it will successfully open this file.
If you access the file /script.php?catalog=notification&page=function - it also opens...
And if so /script/notification/function - it doesn't work... and an error from the hoster 404 occurs.
Perhaps this is because of those domains. But then why are others processed adequately(?
Help)
A technical domain of this kind is domen.ru.host1310390.serv24.hostland.pro/script.php

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
nSnayp, 2014-07-07
@nSnayp

This is very strange, I just renamed the physical file to a different name and the access also indicated another one and it began to work ... Changed it back to "script" - it does not plow

Z
zooks, 2014-07-05
@zooks

Check for directives:

RewriteEngine On
RewriteBase /

V
Volodymyr Godyak, 2014-07-06
@wmgodyak

([a-z]*) - значить може бути, а може і ні, попробуйте ([a-z]+) тобто від 1 символа

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question