D
D
DenPolosin2016-09-30 15:47:44
PHP
DenPolosin, 2016-09-30 15:47:44

How to open another php file on server?

The essence of the question is this. You need to upload the file adminer.php to the server and open it in a browser. I upload to the server, I try to open it, it gives an error "Error 404 Unable to process the request "adminer.php."". What could be the problem? apache limit or htaccess file? If you upload another file with the php extension, it also does not open, the pictures open

RewriteEngine on
RewriteRule ^index\.php - [L]
RewriteCond %{REQUEST_URI} !backend/
RewriteRule !\.(sql|gif|css|jpg|jpeg|png|ico|txt|js|xls|pdf|dtd|fck|csv|doc|rtf|swf|flv|cur|zip|rar|GIF|JPG|JPEG|PNG|XLS|PDF|DOC|xml|ttf|otf|eot|woff|svg|sql|jar|map|scss|woff2)$ /index.php

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2016-09-30
@pudovMaxim

what are the rules in htaccess? Perhaps all requests go to one index.php file, for example.

B
bamond, 2016-09-30
@bamond

try adding at the beginning
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question