<p><a href="http://codex.wordpress.org/htaccess" rel="nofollow">Wordpress’ .htaccess file</a> and <a href="http://buildwithcraft.com/help/remove-index.php" rel="nofollow">Craft’s .htaccess file</a> both use the same strategy: <em>If the request is not pointing to a valid file or folder, rather than have Apache respond with a 404, re-route the request to index.php.</em></p>

<p>It sounds to me like you’ve got a .htaccess fie at your web root which is handling Wordpress’ index.php redirect, and that is taking precedence over Craft’s for whatever reason.</p>

<p>Since your Wordpress install lives within /blog/, you should move that Wordpress .htaccess file to /blog/.htaccess, so it’s only affecting blog/* requests. (You’ll also need to tweak it a bit; post the file’s contents if you need help with that.) Or another option is you could add this condition it, before the RewriteRule line:</p>

<pre><code>RewriteCond %{REQUEST_URI} ^/blog [NC]
</code></pre>

<p>Likewise, Craft’s .htaccess file should live at /craft/.htaccess (no modification will be necessary as the one Craft ships with already accounts for the possibility that it’s within a subfolder), or a similar <code>RewriteCond</code> line could be added to it if you really want to keep all your redirects in one place at /.htaccess.</p>

CC BY-SA 3.0
2014-09-28T12:34:23.990Z
2014-09-28T12:34:23.990Z
Brandon Kelly
<p>My current site is with Wordpress in the folder <code>/blog</code>. My new Craft install is in a sibling folder <code>/craft</code>. When i try to load <code>brianfeeney.us/craft/admin</code>, i get the wordpress 404. Must be an <code>.htaccess</code> issue, right? Can't figure out or find the solution anywhere. </p>

CC BY-SA 3.0
2014-09-27T16:39:59.780Z
You would typically access the craft admin control panel using `brianfeeney.us/admin`. Have you configured your index.php with the proper craft path? `$craftPath = '../craft';`? Might want to reread [installation docs](http://buildwithcraft.com/docs/installing). And yes, could also be an htaccess issue.
Douglas McDonald
CC BY-SA 3.0
2014-09-27T18:29:36.037Z
Do you really mean a sibling folder?  From the URL you're trying to load it looks like a sub-folder.
Brad Bell
CC BY-SA 3.0
2014-09-29T12:56:36.080Z
the folders are within the same root folder, so I think you'd call them siblings. (?) They aren't nested.
brian
CC BY-SA 3.0
2014-09-29T12:59:33.643Z
The craft install will eventually replace my current site (WP), but for now, I'm just trying to get it up and running before I do the redirect. The paths are correct (except I'm also getting the /index.php/ problem that this ('omitScriptNameInUrls' => true) is supposed to solve, but isn't.
brian
<redirect><htaccess>
Getting Wordpress 404 when accessing /craft/admin
# Getting Wordpress 404 when accessing /craft/admin

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

My current site is with Wordpress in the folder `/blog`. My new Craft install is in a sibling folder `/craft`. When i try to load `username_0feeney.us/craft/admin`, i get the wordpress 404. Must be an `.htaccess` issue, right? Can't figure out or find the solution anywhere.

**Tags:** redirect, htaccess

> **Comments:**
> **username_1**: You would typically access the craft admin control panel using `username_0feeney.us/admin`. Have you configured your index.php with the proper craft path? `$craftPath = '../craft';`? Might want to reread [installation docs](http://buildwithcraft.com/docs/installing). And yes, could also be an htaccess issue.  
> **username_2**: Do you really mean a sibling folder?  From the URL you're trying to load it looks like a sub-folder.  
> **username_0**: the folders are within the same root folder, so I think you'd call them siblings. (?) They aren't nested.  
> **username_0**: The craft install will eventually replace my current site (WP), but for now, I'm just trying to get it up and running before I do the redirect. The paths are correct (except I'm also getting the /index.php/ problem that this ('omitScriptNameInUrls' => true) is supposed to solve, but isn't.  

---

## 1 answers

### Answer by username_3 on 2014-09-28. Score: 3 | Accepted answer

Wordpress’ .htaccess file and Craft’s .htaccess file both use the same strategy: If the request is not pointing to a valid file or folder, rather than have Apache respond with a 404, re-route the request to index.php.
It sounds to me like you’ve got a .htaccess fie at your web root which is handling Wordpress’ index.php redirect, and that is taking precedence over Craft’s for whatever reason.
Since your Wordpress install lives within /blog/, you should move that Wordpress .htaccess file to /blog/.htaccess, so it’s only affecting blog/* requests. (You’ll also need to tweak it a bit; post the file’s contents if you need help with that.) Or another option is you could add this condition it, before the RewriteRule line:
RewriteCond %{REQUEST_URI} ^/blog [NC]

Likewise, Craft’s .htaccess file should live at /craft/.htaccess (no modification will be necessary as the one Craft ships with already accounts for the possibility that it’s within a subfolder), or a similar RewriteCond line could be added to it if you really want to keep all your redirects in one place at /.htaccess.


---

