Skip to content

Instantly share code, notes, and snippets.

@developertugrul
Created December 8, 2022 06:38
Show Gist options
  • Save developertugrul/cfc57c03f784b915b502490447e216b6 to your computer and use it in GitHub Desktop.
Save developertugrul/cfc57c03f784b915b502490447e216b6 to your computer and use it in GitHub Desktop.
wordpress htaccess file
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment