Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12461

Reply To: Network/Multisite Redirect to another website and still login to the website

$
0
0

Instead of doing masking or forwarding (causes unneeded headaches & problems galore) in your Host Control panel the much simpler solution is just to create an .htaccess redirect rule in BPS Custom Code.  Since this is a Network/Multisite site the Primary site is the site where you will be creating this redirect rule/code below.

For a Network/Multisite Subdirectory site where you still want to be able to login to the Dashboard of subsite “boh” and want to redirect the front end to another site this is the code modification you would make to the WP Rewrite Loop Start code.  This code would be used instead of the RedirectMatch code that was posted above.

1.  Copy this code below to this BPS Root Custom Code text box:  CUSTOM CODE WP REWRITE LOOP START: Add www to non-www/non-www to www code here
Just as an example:  This is the standard WP Rewrite Loop Start htaccess code

# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

This is the custom code after modifying the WP Rewrite Loop Start code

# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^(/wp-admin|.*wp-login\.php.*|.*boh/wp-admin|.*boh.*wp-login\.php.*) [NC]
RewriteCond %{REQUEST_URI} ^.*boh/ [NC]
RewriteRule (.*) http://www.businessofhonor.org/ [R=301,L]
RewriteRule ^index\.php$ - [L]

2.  Click the Save Root Custom Code button.
3.  Go to the Security Modes page, click the Create secure.htaccess File AutoMagic button and activate Root folder BulletProof Mode.

To Redirect a Single standard WordPress site instead of Network/Multisite
http://forum.ait-pro.com/forums/topic/301-redirect-and-old-wordpress-dashboard/#post-12531

  • This reply was modified 7 hours, 7 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This reply was modified 7 hours, 6 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This reply was modified 7 hours, 5 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This reply was modified 7 hours, 4 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This reply was modified 3 hours, 15 minutes ago by Avatar of AITpro Admin AITpro Admin.

Viewing all articles
Browse latest Browse all 12461

Trending Articles