Answer the question
In order to leave comments, you need to log in
How to install wordpress and member in folders with OctoberCMS already installed?
Faced such a problem. There is a website with october cms installed. There are no complaints about the site, but you need to install a section with WordPress and a section with member.
On a similar project, but without Oktober, similar processes were solved simply by installing everything in folders. for example /folder1/ /folder2/ when accessed through the appropriate CMS was opened.
I don't know why, it seems to me that I need to
- dig towards htaccess but I have no idea about editing
or
- dealing with routers (oktober is based on laravel)
Answer the question
In order to leave comments, you need to log in
In OctoberCMS, at the .htaccess level, all php crypts are prohibited except for the index.php entry point, and this is correct from a security point of view. If you still need to open a directory for requests, then this is done like this:
##
## White listed folders
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !/.well-known/*
RewriteCond %{REQUEST_FILENAME} !/storage/app/uploads/.*
RewriteCond %{REQUEST_FILENAME} !/storage/app/media/.*
RewriteCond %{REQUEST_FILENAME} !/storage/temp/public/.*
RewriteCond %{REQUEST_FILENAME} !/themes/.*/(assets|resources)/.*
RewriteCond %{REQUEST_FILENAME} !/plugins/.*/(assets|resources)/.*
RewriteCond %{REQUEST_FILENAME} !/modules/.*/(assets|resources)/.*
RewriteCond %{REQUEST_FILENAME} !/testfolder/.*
RewriteRule !^index.php index.php [L,NC]
##
## Block all PHP files, except index
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} \.php$
RewriteCond %{REQUEST_FILENAME} !/testfolder/.*
RewriteRule !^index.php index.php [L,NC]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question