S
S
SidorKovpak2016-10-05 20:08:19
PHP
SidorKovpak, 2016-10-05 20:08:19

.htaccess redirect everything to index.php, but if the request is to /folder/app.php, then run this script, how?

Good evening, uv.Community.
There is a .htaccess like this:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php

I decided to install another script that should work in parallel with this site.
The directory is where index.php is located (at the root). The script is located at site.com/One/php/app.php
How to register that all requests except site.com/One/php/app.php are transferred to index.php, and this request is processed. I apologize in advance, I'm not strong in apache rules. Went through a lot of material.
UPD: Issue resolved. Somehow hacked apache

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
T_y_l_e_r, 2016-10-05
@T_y_l_e_r

наверное стоит роутер на php сделать как тут mvcphp.ru

Пума Тайланд, 2016-10-06
@opium

Так у вас и так уже это прописано, если файл есть отдать его если нету в индекс направит , ничего добавлять не надо

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question