WordPress.org

Support

Support » How-To and Troubleshooting » 301 redirect causing loop

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:
    http://www.coolgooglepages.com/cool
    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 (.*) http://www.coolgooglepages.com/cool/$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.
    Kirk

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.
Skip to toolbar