The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other .htaccess file in WordPress folder

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #32158

    I used the .htaccess file trick to redirect my pages to always include “www.” beforehand and it worked like a charm. I noticed it wasn’t working for the pages in my WordPress /blog/ folder so I added one there as well. It looked like this:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^ [NC]
    RewriteRule ^(.*)$$1 [L,R=301]

    After I uploaded this .htaccess file in the root of my /blog/ folder, I received the following error when I tried to visit the blog: “This webpage has a redirect loop
    The webpage at has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.”

    I tried changing my .htaccess file, deleting it, re-uploading it blank and I still get the “…too many directs…” error. Clearing the cache didn’t change anything and I get a similar message in every browser. In addition to the mistake I must have made to begin with, does anyone know how I can fix this?


    I don’t have an answer to your question, sorry, but when I enter, I get redirected to and now have the opportunity to install a new fresh WordPress installation. Thought you might wanted to get rid of that while you fix it. :)


    Thanks for reminding me! I started to reinstall WP on the root folder and then went to bed. That is removed now.

    Any ideas on fixing the eternal loop I somehow created?


    I ended up just reinstalling WordPress.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.