Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1838

[3.3.x] Support Forum • Re: htaccess question - making subfolder public

$
0
0
Another option is to comment this out of .htaccess:

Code:

## The following 3 lines will rewrite URLs passed through the front controller# to not require app.php in the actual URL. In other words, a controller is# by default accessed at /app.php/my/controller, but can also be accessed at# /my/controller#RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ app.php [QSA,L]
And then add explicit rewrites for the various extension controllers. For example, for the base phpBB controllers:

Code:

RewriteRule ^cron/(.*)$ app.php/cron/$1 [QSA,L]RewriteRule ^feed/(.*)$ app.php/feed/$1 [QSA,L]RewriteRule ^help/(.*)$ app.php/help/$1 [QSA,L]RewriteRule ^pm/(.*)$ app.php/pm/$1 [QSA,L]RewriteRule ^post/(.*)$ app.php/post/$1 [QSA,L]RewriteRule ^ucp/(.*)$ app.php/ucp/$1 [QSA,L]RewriteRule ^user/(.*)$ app.php/user/$1 [QSA,L]
(See phpbb_url_generator.php created by Symfony in the cache directory for more details).

This eliminates the "No route found" case where unknown routes are systematically routed to app.php. Of course, it means that for every extension you install, you'll have to add a RewriteRule like the above, otherwise the extension won't function.
thanks for that suggestion!

wouldn't that lower the security of my forum ?
also, I have installed many extensions.

Statistics: Posted by manarak — Sun Feb 18, 2024 7:38 am



Viewing all articles
Browse latest Browse all 1838

Trending Articles