Last active
January 16, 2023 16:18
-
-
Save twentyfortysix/7ea7ff14f28db32e7d09cd6c1bc7de9a to your computer and use it in GitHub Desktop.
manual web root to bedrock.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^domain.rocks$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.domain.rocks$ | |
RewriteCond %{REQUEST_URI} !bedrock/web/ | |
RewriteRule (.*) /bedrock/web/$1 [L] | |
# or | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^(www.)?domain.rocks$ | |
RewriteCond %{REQUEST_URI} !^/domain.rocks/bedrock/web/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /domain.rocks/bedrock/web/$1 | |
RewriteCond %{HTTP_HOST} ^(www.)?domain.rocks$ | |
RewriteRule ^(/)?$ domain.rocks/bedrock/web/index.php [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment