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

Reply To: Redirect WordPress Website and Still Allow Login

$
0
0
# RedirectMatch dynamic URL redirect with matching URL structures
RedirectMatch 301 ^/([^/]+)/([^/.]+)$ http://newsite.com/$1/$2/
RedirectMatch 301 ^/([^/]+)/([^/]+)/([^/.]+)$ http://newsite.com/$1/$2/$3/

# mod_rewrite Host name based dynamic URL structure rewrite
RewriteCond %{HTTP_HOST} sitename.com [NC]
RewriteRule ^([^/]+)/([^/]+)/([^/.]+)$ http://newsite.com/$1/$2/$3/ [R=301,L]

# RedirectMatch individual URL redirects to new site
RedirectMatch 301 ^/some-url/$ http://newsite.com/$
RedirectMatch 301 ^/some-other-url/$ http://newsite.com/$

# Simple RedirectMatch individual URL redirects to new site
RedirectMatch 301 ^/some-url/$ http://newsite.com/some-url-different-name/
RedirectMatch 301 ^/some-other-url/$ http://newsite.com/some-url-another-different-name/

# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /wordpress-testing-website/
RewriteCond %{REQUEST_URI} !^(/wp-admin|.*wp-login\.php.*) [NC]
RewriteRule (.*) http://www.ait-pro.com/$1 [R=301,L]
# WP REWRITE LOOP END
  • This reply was modified 15 hours, 23 minutes ago by Avatar of AITpro Admin AITpro Admin.

Viewing all articles
Browse latest Browse all 12461

Trending Articles