Skip to content

Instantly share code, notes, and snippets.

@Matteo182
Created December 5, 2019 15:36
Show Gist options
  • Save Matteo182/4b37002baa411772741b893b4ecbbf7d to your computer and use it in GitHub Desktop.
Save Matteo182/4b37002baa411772741b893b4ecbbf7d to your computer and use it in GitHub Desktop.
REDIRECT PER LA CARTELLA /web di BEDROCK
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# REDIRECT PER LA CARTELLA /web di BEDROCK # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Add directives
RewriteEngine on
# Change root directory to “web” folder
RewriteCond %{THE_REQUEST} ^GET\ /web/
RewriteRule ^web/(.*) /$1 [L,R=301]
RewriteRule !^web/ web%{REQUEST_URI} [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment