# Install in subdirectory : problem after upgrading from 3.1.2 to 3.3.5

**URL:** <https://forum.mautic.org/t/install-in-subdirectory-problem-after-upgrading-from-3-1-2-to-3-3-5/27005>\
**Category:** Product Support\
**Tags:** mautic-3\
**Created:** [February 11, 2023, 11:39am UTC](https://forum.mautic.org/t/install-in-subdirectory-problem-after-upgrading-from-3-1-2-to-3-3-5/27005 "2023-02-11T11:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/patrick1/32/9280_2.png) [@patrick1](https://forum.mautic.org/u/patrick1)\
**Post date:** [February 11, 2023, 11:39am UTC](https://forum.mautic.org/t/install-in-subdirectory-problem-after-upgrading-from-3-1-2-to-3-3-5/27005/1 "2023-02-11T11:39:33Z")

</div>

I was trying to upgrade with command line from 3.1.2 to 3.3.5

i’m using an 02switch hosting (mutualised) for my website.

My mautic is in a subdirectory and everything was fine since today :

Here is the folder organization:  
/mautic  
/wordpress  
Symlinc in /wordress/marketing → …/mautic  
and i’m accessing mautic using web address with [domain-name.com/marketing/s/login](http://domain-name.com/marketing/s/login)

Before upgrading, everything was fine, but right now I can’t find what’s wrong, i’m redirected to the wordpress router who finaly display a 404 (it’s logic that it can’t found anything)

i’ve properly changed those value in app/config/local.php  
“site\_url”  
and all path for the storage

Can you help me please ?

PS: it’s only a “transition” cause i’ll next upgrade to mautic 4, but i tried upgrading directly to mautic 4 and i had the same issue

I also tried to disable mod\_security but this doesn’t fix my problem

best regards

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 13, 2023, 11:03am UTC](https://forum.mautic.org/t/install-in-subdirectory-problem-after-upgrading-from-3-1-2-to-3-3-5/27005/2 "2023-02-13T11:03:34Z")

</div>

Please make sure you always read the release notes when upgrading.

> **[Release Mautic Community 3.3.5 · mautic/mautic](https://github.com/mautic/mautic/releases/tag/3.3.5)**
>
> 🔒 Security release
> This issue impacts all versions of Mautic prior to 3.3.5. Please update at your earliest convenience.
> CVE-2022-25769 - Improper regex in htaccess file
> ⚠️ If you host Mautic in a ...

This explains in the linked issue the actions you need to take if you’re using a sub folder.
