Skip to content

Instantly share code, notes, and snippets.

@zetrider
Created June 6, 2016 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zetrider/f7d4504f386f9a58d92bbee6b131321f to your computer and use it in GitHub Desktop.
Save zetrider/f7d4504f386f9a58d92bbee6b131321f to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment