Codeigniter runs an external PHP script in a separate folder

I have a security issue with Codeigniters.

My Codeigniter installation has Application Folder, System Folderand Assets Folder.

There is a third-party PHP Script in my Assets folder.

I want to call it Script: DOMAIN/assets/FOLDEROFEXTERNALSCRIPT/EXTERNALPHPSCRIPT.php

Is there an option that I can call this file at a URL without a controller?

+4
source share
1 answer

I hope you removed index.php from your URL, which is done by adding the following rules to the .htaccess file in the DOMAIN root directory or by adding these rewrite rules on virtual hosts.

, url index.php? params, , url "index.php ", PHP- , CI .

.htaccess "assets" , index.php

RewriteEngine on
RewriteCond $1 ^!(index\.php|assets)
RewriteRule ^(.*)$ /index.php?$1 [L,QSA] 
+4

Source: https://habr.com/ru/post/1529991/


All Articles