Skip to content

How to prevent user from accessing root folders via URL #1887

Answered by cngirwa
cngirwa asked this question in Q&A
Discussion options

You must be logged in to vote

Found an answer to this question:

  1. Make sure you are signed in and navigate to Settings
  2. Change setting/settings.ini.php 'force_virtual_host' => true
  3. Clean the cache in the back office (about 2 or 3 times) until you see the error page
  4. Edit .htaccess as suggested here
  5. Enable rewrite mod as suggested here
  6. Enable headers usinga2enmod headers

Try to access forbidden pages, the system should redirect just fine

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cngirwa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants