Support » Plugin: BulletProof Security » 301 Redirect Not Working

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AITpro

    (@aitpro)

    hmm what does this mean – “…Even though I’ve got the BPS generated .htacess file in both my http: //piepho.com and http: //www.piepho.com root folders”. Do you have the same website duplicated in 2 different folders? If so, why would you be doing something like that?

    Check your WordPress Settings to make sure they are correct.
    Settings >>> General
    WordPress Address (URL)
    Site Address (URL)

    To create redirect rules use RedirectMatch instead. And I do not think you really want the back reference $1, but i could be wrong. Are you trying to redirect /locations/mankato-mn-mover(.*) to just your contact page or do you want this instead /about/contact/locations/mankato-mn-mover.

    RedirectMatch 301 ^/locations/mankato-mn-mover(.*)$ http://piepho.com/about/contact/

    Thanks for the fast response, and helpful answer. It turns out that the Redirect Match in your code did the job!

    I checked the settings as above, and they are both correct: http://piepho.com

    My webhost automatically sets up the two folders — one for the http://www.piepho.com and one for .piepho.com. I do not have a Redirect setup from within my webhost, so that is why I’m confused as to where the redirect from the www to the non-www site is originating. Any thoughts on that one?

    Thanks for your help!

    Bruce

    Plugin Author AITpro

    (@aitpro)

    Yeah that is really wierd to have two folders like that. This is the first anyone has ever mentioned something like this to me and I have no idea why they would do that. Give them a ring and ask them about that.

    My guess is that the www to non-www redirect has to do with the two folder setup. This is something that you will have to ask your Host about too since I don’t have any logical guesses that I can offer about this. 😉

    Plugin Author AITpro

    (@aitpro)

    Oh you mentioned that you had .htaccess files for each folder so double check them. Also I guess you could always do a redirect from the other folder to the site you want if that is what is going on.

    Plugin Author AITpro

    (@aitpro)

    Host issue/non-BPS issue. Resolving.

    Hi,
    Thanks again for your help. You were right… I asked the host and they put the re-direct in automatically given their two folder setup.
    I really appreciate it. I’m heading over to wordpress.org right now to give BPS a 5-star rating given your excellent support.
    -Bruce

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘301 Redirect Not Working’ is closed to new replies.