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

Fawii
Fawii

If you want October CMS to ignore specific sub-folder rather than returning a 404 then add the following rule in .htaccess right after RewriteEngine On:

RewriteRule ^(foobar1|foobar2)($|/) - [L]

Where, foobar1 and foobar2 are sub-folders.

Reload your Apache config and it should work.

Last updated

planetadeleste
planetadeleste

Thanks for the tip. Work ok for me.

Flynsarmy
Flynsarmy

@Fawii can you send a PR to the docs repo if this is in fact required?

matteusbarbosa29161
matteusbarbosa29161

Remember, when you r using Wordpress within a subfolder, you must configure his own .htaccess, just like this:


RewriteEngine On
RewriteBase /subfoldername
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subfoldername/index.php [L]

Last updated

kavishdahekar36295
kavishdahekar36295

RewriteRule ^(foobar1|foobar2)($|/) - [L]

After searching far and wide, this is the only thing that worked.

Last updated

1-5 of 5

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