• Resolved mattm462

    (@mattm462)


    Hi,

    I’m using NearlyFreeSpeech to host my WordPress site.

    I’m having a bit of trouble with .htaccess and the permalinks.

    I can view the site at matt.mccurdyfamily.net, but I cannot get to any of the pages. (matt.mccurdyfamily.net/about). I get the web host’s 404 page.

    At the root site, I have this:

    RewriteEngine on
    RewriteCond %{ENV:REDIRECT_ENTEREDSITE} !=1
    RewriteCond %{ENV:REDIRECT_REDIRECT_ENTEREDSITE} !=1
    RewriteRule ^.*$ %{HTTP_HOST}/$0 [env=ENTEREDSITE:1] [last]

    I found this on the NFS wiki to make a subdomain from a directory.

    The .htaccess contents given to me on the permalinks settings is this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    However, when I try to access wp-admin, it loops to this:
    http://matt.mccurdyfamily.net/wp-login.php?redirect_to=http%3A%2F%2Fmatt.mccurdyfamily.net%2Fmatt.mccurdyfamily.net%2Fwp-admin%2F&reauth=1

    This only happens when I place the .htaccess in the /home/public/matt.mccurdyfamily.net directory.

    My files are located here:
    /home/public/matt.mccurdyfamily.net/

    Both my site URL and WordPress Address are
    http://matt.mccurdyfamily.net

    Does anyone have any tips for correcting this problem?

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘.htaccess loop?’ is closed to new replies.