Support » Fixing WordPress » 301 redirect causing loop

  • Hello,
    I’m sure this will be simple for someone, but I just can’t seem to get this right. I have a site I just installed in a folder of my domain:
    When I set this up initially, I planned on forwarding the domain to /cool but when I tried that with the domain settings, a similar loop was generated. Then I decided to go the .htaccess route since the site is on a linux server, and when I put in the .htacess file in the root folder, I get the loop again. The site gets forwarded to /coolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcool

    Furthermore, I deleted the .htacess file in the /cool folder but realized that there was wordpress info in there I probably should not have deleted.

    Here is what is in my .htacerss file:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*)$1 [R=301,L]

    What do I need to do to fix my .htacess file?
    Also, should there be a second .htacess file in the directory of the wp install?

    Thank you for the assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • All you need to do to “fix” the .htaccess file is to dleete it, then reset your permalink structure by setting it to ‘Default’, and then back to what it is now. WordPress will re-create the file with only the information that it needs.

    Cat, thanks for the tip. Just set up my own server and was having the same problem. crowdsourcing IT FTW 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘301 redirect causing loop’ is closed to new replies.