This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

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]
mjauvin
mjauvin

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?

mjauvin
mjauvin

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.