Title: WordPress in Subfolder
Last modified: October 1, 2020

---

# WordPress in Subfolder

 *  [gaboneta](https://wordpress.org/support/users/gaboneta/)
 * (@gaboneta)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-4/)
 * Hello,
 * So I have WordPress installed in a subfolder /wp/, because we had Joomla in the
   root folder as the main website. I deleted Joomla, and decided to have WordPress
   as the main site while leaving WordPress in it’s subfolder. ( I think that’s 
   a more clean set up anyways).
    I followed this [instructions](https://wordpress.org/support/article/giving-wordpress-its-own-directory/#method-ii-with-url-change).
 * It was working fine, and today all pages decided to give me a 404 error. The 
   only thing that changed today was that I installed Moodle. But that was installed
   in a completely different folder. However, it is a subdomain. But I’m not sure
   if that’s the issue.
 * I also tried updating permalinks.
 * htaccess in the root folder is like this:
    <IfModule mod_rewrite.c> RewriteEngine
   On RewriteBase /wp/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp/index.php [L] </IfModule
   >
 * And htaccess in the subfolder didn’t have that.
 * Any help is appreciated.
    -  This topic was modified 5 years, 7 months ago by [gaboneta](https://wordpress.org/support/users/gaboneta/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-4/#post-13486400)
 * What is your website URL?
    What is the moodle website URL?
 *  Thread Starter [gaboneta](https://wordpress.org/support/users/gaboneta/)
 * (@gaboneta)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-4/#post-13499353)
 * Unfortunately we want to keep the website private.
    But if you have some ideas,
   I can see what’s wrong.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress in Subfolder’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [gaboneta](https://wordpress.org/support/users/gaboneta/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-4/#post-13499353)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
