Title: .htaccess loop?
Last modified: August 20, 2016

---

# .htaccess loop?

 *  Resolved [mattm462](https://wordpress.org/support/users/mattm462/)
 * (@mattm462)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/htaccess-loop/)
 * 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)

 *  Thread Starter [mattm462](https://wordpress.org/support/users/mattm462/)
 * (@mattm462)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/htaccess-loop/#post-2471001)
 * Nevermind. I figured out a workaround with my host.

Viewing 1 replies (of 1 total)

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

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [mattm462](https://wordpress.org/support/users/mattm462/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/htaccess-loop/#post-2471001)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
