<p>I hope you figured it out however, I just found adding</p>

<pre><code>RewriteBase /
</code></pre>

<p>right under RewriteEngine On fixed my issue.</p>

CC BY-SA 3.0
2015-03-07T15:56:49.927Z
2015-03-07T15:56:49.927Z
danhere
<p>From what I gather, I think the problem is that your <code>.htaccess</code> is not in the webroot. try putting it in the same dir as <code>web.config</code>. </p>

<p>Also bare in mind that there are two <code>.htaccess</code>, the other is in /craft dir, and that one should stay there and not edited.</p>

CC BY-SA 3.0
2015-05-12T21:45:37.760Z
2015-05-12T21:45:37.760Z
Kenyon Kowal
<p>When I try the solution mentioned <a href="http://buildwithcraft.com/help/remove-index.php" rel="nofollow">here</a>, my site breaks, pages not found. Even the <code>/admin/</code> pages break, losing all styling. The only page which loads is the homepage.</p>

<p>Any thoughts about why? I was having htaccess issues, but I believe those are all fixed now.</p>

<p>This is the htaccess file in the the top level craft folder</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On

    # Send would-be 404 requests to Craft
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/blog [NC]
    RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
    RewriteRule (.+) index.php?p=$1 [QSA,L]
&lt;/IfModule&gt;
</code></pre>

<p>There is the root: 
<code>brianfeeney.us/</code></p>

<p>Which contains both:
<code>brianfeeney.us/blog</code> (WP)
<code>brianfeeney.us/craft</code></p>

<p>The index.php in my root points towards <code>/blog/</code></p>

<p>thanks for the help</p>

CC BY-SA 3.0
2014-09-30T18:23:37.903Z
Can you share the .htaccess file you're using in your public HTML folder?
Brad Bell
CC BY-SA 3.0
2014-10-01T13:09:08.717Z
I don't have an .htaccess file in the public folder. Should I? The /public and /craft folders are both in the same folder (brianfeeney.us/craft/..).    This is the htaccess file in the the top level craft folder           `<IfModule mod_rewrite.c>
    RewriteEngine On

    # Send would-be 404 requests to Craft
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_URI} ^/blog [NC]
    RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
    RewriteRule (.+) index.php?p=$1 [QSA,L]
</IfModule>`
brian
CC BY-SA 3.0
2014-10-01T16:47:23.693Z
Can you edit the original question and add that as well as what your folder structure looks like?  Pretty hard to read as code in the comments.
Brad Bell
CC BY-SA 3.0
2014-10-02T21:11:18.503Z
Is there any .htaccess file at the root of brianfeeney.us? If so, .htaccess rules inherit from their parent so one of those could be interfering with Craft's.
Brad Bell
<admin><index>
Removing /index.php/ from url breaks site
# Removing /index.php/ from url breaks site

(Asked by: username_0 on 2014-09-30)

When I try the solution mentioned here, my site breaks, pages not found. Even the /admin/ pages break, losing all styling. The only page which loads is the homepage.
Any thoughts about why? I was having htaccess issues, but I believe those are all fixed now.
This is the htaccess file in the the top level craft folder

    RewriteEngine On

    # Send would-be 404 requests to Craft
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/blog [NC]
    RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
    RewriteRule (.+) index.php?p=$1 [QSA,L]


There is the root: 
username_0feeney.us/
Which contains both:
username_0feeney.us/blog (WP)
username_0feeney.us/craft
The index.php in my root points towards /blog/
thanks for the help

**Tags:** admin, index

> **Comments:**
> **username_1**: Can you share the .htaccess file you're using in your public HTML folder?  
> **username_0**: I don't have an .htaccess file in the public folder. Should I? The /public and /craft folders are both in the same folder (username_0feeney.us/craft/..).    This is the htaccess file in the the top level craft folder           `<IfModule mod_rewrite.c>     RewriteEngine On      # Send would-be 404 requests to Craft     RewriteCond %{REQUEST_FILENAME} !-f     RewriteCond %{REQUEST_FILENAME} !-d  RewriteCond %{REQUEST_URI} ^/blog [NC]     RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]     RewriteRule (.+) index.php?p=$1 [QSA,L] </IfModule>`  
> **username_1**: Can you edit the original question and add that as well as what your folder structure looks like?  Pretty hard to read as code in the comments.  
> **username_1**: Is there any .htaccess file at the root of username_0feeney.us? If so, .htaccess rules inherit from their parent so one of those could be interfering with Craft's.  

---

## 2 answers

### Answer by username_2 on 2015-03-07. Score: 3

I hope you figured it out however, I just found adding
RewriteBase /

right under RewriteEngine On fixed my issue.


---

### Answer by username_3 on 2015-05-12. Score: 0

From what I gather, I think the problem is that your `.htaccess` is not in the webroot. try putting it in the same dir as `web.config`.

Also bare in mind that there are two `.htaccess`, the other is in /craft dir, and that one should stay there and not edited.


---

