• I recently created a .htaccess file to redirect all incoming traffic coming from example.com to redirect to https://WWW.example.com. However this causes a redirect loop error with Word Press. Whenever I try to view a specific blog I get this error. Also, when I try to log on my WP Cpanel it wont allow me to.

    The WP folder and the .htaccess file are located in the root directory with the index file.

    This is the actual error I get when trying to get into a specific blog https://deadutopia.com/blog/?cat=4

    Looks like to me since its missing the WWW the redirect code runs into issues trying to redirect to https://WWW.deadutopia.com/blog/?cat=4

    I’ve searched the forums and cant find a solution to this particular redirect issue. Can anyone help?
    thanx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    WordPress uses canonical URLs. Meaning that it will redirect to the URLs it expects you do be on, if you’re not on them. Meaning that you had better make sure that the two URLs on the Settings->General page look the way you want them to look.

    WordPress will automatically enforce www or no www based on the site url you set in the General Settings page, so you don’t have to add anything to your .htaccess.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WWW redirect conflict with WP’ is closed to new replies.