Skip to content

Instantly share code, notes, and snippets.

@chanakaDe
Created February 17, 2020 07:31
Show Gist options
  • Save chanakaDe/6c3f71d9539e0b00ca45978acc646c75 to your computer and use it in GitHub Desktop.
Save chanakaDe/6c3f71d9539e0b00ca45978acc646c75 to your computer and use it in GitHub Desktop.
htaccess file for www.navigator360.co/education
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
# Enable rewrite rules
RewriteEngine on
# Base directory
RewriteBase /education/
# Deny direct access to the next directories
RewriteRule ^bl-content/(databases|workspaces|pages|tmp)/.*$ - [R=404,L]
# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [PT,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment