Skip to content

Instantly share code, notes, and snippets.

@renekreijveld
Created August 14, 2018 13:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save renekreijveld/c6e6c8e523f22647383a060b657961b8 to your computer and use it in GitHub Desktop.
Save renekreijveld/c6e6c8e523f22647383a060b657961b8 to your computer and use it in GitHub Desktop.
Add this code snippet to .htaccess of your Joomla website after RewriteEngine On
## Redirect WordPress attempts - BEGIN
Redirect 301 /wp-login.php http://127.0.0.1/wp-login.php
Redirect 301 /wp-admin.php http://127.0.0.1/wp-admin.php
RewriteRule ^wp-content(.*)$ http://127.0.0.1/$1 [L,R=301]
RewriteRule ^wp-admin(.*)$ http://127.0.0.1/$1 [L,R=301]
## Redirect WordPress attempts - END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment