Forums

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
    Posts
  • #32158
    SteveA
    Member

    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} ^justritebeds.com/blog/ [NC]
    RewriteRule ^(.*)$ http://www.justritebeds.com/blog/$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 http://justritebeds.com/blog/ 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?

    #53461
    Kralle
    Participant

    I don’t have an answer to your question, sorry, but when I enter http://www.justritebeds.com, I get redirected to http://www.justritebeds.com/wp-admin/install.php 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. :)

    http://cl.ly/2z0V3R351N2f3c3t3S3G

    #53352
    SteveA
    Member

    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?

    #53316
    SteveA
    Member

    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.