There is a folder with a set of js / html / php files that is already performing the functionality I need (updating the database). I put the folder on the host site on WP, but when I try to open the file or get access, the SITE responds that there is no such page, it is the site, not the server. Here is the CAM question: what can I do so that I can freely go to the following address: mysitename.dn / calc-setting / index.html

PS - tried to configure .htaccess in the root of the host, as well as in the right folder, but did not give any results (maybe it did not configure correctly)

    1 answer 1

    SITE answers that there is no such page, it is the site, not the server

    When using sites that, in turn, use mod_rewrite , this is normal behavior, since all requests there, if there is no such folder or file to which you refer, are redirected to the index.php file. Here is the usual .htaccess for WP (4.8):

     <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # если мы не нашли файл, который запрашивается, то правило ниже выполнится RewriteCond %{REQUEST_FILENAME} !-f # если мы не нашли папку, которая запрашивается, то правило ниже выполнится RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> 

    Try, for example, to request some picture from the themes you have installed, and you will see how it will be given out without any problems. The path should look something like this: http://your-site.com/wp-content/themes/your-theme/assets/images/header.jpg .

    tried to configure .htaccess in the root of the host, as well as in the right folder

    If you have not changed anything in the root .htaccess, then you do not need to do this, unless your code also requires any special processing rules.

    what to do so that I can freely go to the following address: mysitename.dn / calc-setting / index.html

    To do this, usually, you just need to make sure that you are accessing exactly the path that your real files lie on.

    • In general, I removed all the lines from .htaccess and I’m definitely contacting the existing path, but I get what I get. :( Maybe this is due to the fact that there is a huge topic there? - Kirill
    • Complete your question with the folder structure of your site (you can screen from the file manager, opening the folder to the one you are interested in) and with the query you are trying to make to this folder. - Stanislav Belichenko
    • Made screenshots of .htaccess which now, ftp, and open address. savepic.ru/14602023.png savepic.ru/14592807.png savepic.ru/14597927.png - Kirill
    • @ Kirill Schrader Try to remove line 8 in the .htaccess file - Stanislav Belichenko
    • one
      I apologize for my stupidity. :) The customer gave FTP with a full copy of the site, but not on that domain. :( So, the site answered me correctly that there were no files. - Cyril