Skip to content

Instantly share code, notes, and snippets.

@eltondev
Last active October 7, 2015 19:33
Show Gist options
  • Save eltondev/b9036757cb0fa7d771ad to your computer and use it in GitHub Desktop.
Save eltondev/b9036757cb0fa7d771ad to your computer and use it in GitHub Desktop.
Error to access wp-admin after migration, ranking redirect loop use the .htaccess below
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,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