Redirect 301 or RedirectMatch htaccess code

Home Forums BulletProof Security Free Redirect 301 or RedirectMatch htaccess code

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #32174
    AITpro Admin
    Keymaster

    @ Hannah – Ok so now you need to tell me what is and is not needed any longer.  Are the old domains still around or are long gone?  Is there any point is using the old htaccess code anymore, etc?

    #32175
    AITpro Admin
    Keymaster

    @ Hannah – Never mind.  I answered my own question by checking the domains in my Browser.  This domain no longer exists: rakufiredceramics.com and does not point to the new domain. This domain does exist doderostudioceramics.com and does point to and is redirected to the new domain.  So that means you just need to redirect the existing domain to the new domain and can delete the code for the non-existant domain.  The domain is http and not https so the code you have is correct.  If you do change the current domain to https then you will need to create different code for that.

    #32176
    AITpro Admin
    Keymaster

    @ Hannah – So this is the code that you would use IF you change the new site to https.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} !=on
    RewriteCond %{SERVER_PORT} ^80
    RewriteCond %{HTTP_HOST} ^(www\.|)doderostudioceramics\.com$ [NC]
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    RewriteCond %{HTTPS} !=on
    RewriteCond %{SERVER_PORT} ^80
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    RewriteRule ^index\.php$ - [L]
    #32205
    Hannah
    Participant

    That worked like a charm! Thank you soooo, so much! I hope there’s a special, unexpected blessing hiding in this day and every day for you, for all the help you’ve given me.

    #32208
    AITpro Admin
    Keymaster

    @ Hannah – Great!  Thanks for confirming all is well in the world. 😉

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.