arnas53264
arnas53264

Hello,

By default .htaccess config OctoberCMS Block all PHP files, except index. How i can unblock one more .php file? I tried comment this rule, but do not works.

## Block all PHP files, except index
##
##RewriteCond %{REQUEST_FILENAME} -f
##RewriteCond %{REQUEST_FILENAME} \.php$
##RewriteRule !^index.php index.php [L,NC]
marc.jauvin24240
marc.jauvin24240

There are two places that need to be changed in htaccess for this to work

arnas53264
arnas53264

marc.jauvin24240 said:

There are two places that need to be changed in htaccess for this to work

Which places?

marc.jauvin24240
marc.jauvin24240

Actually, the easiest way is to ONLY add this rule after # RewriteBase / :

   RewriteRule ^your-php-file\.php - [L]

(replace "your-php-file" with the actual filename, of course)

Don't change the rest of the file

Last updated

arnas53264
arnas53264

Thank you a lot, man!

1-5 of 5