# Joomla in a subfolder

**URL:** <https://www.ruby-forum.com/t/joomla-in-a-subfolder/190304>\
**Category:** NGINX\
**Created:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/joomla-in-a-subfolder/190304 "2010-06-17T16:22:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeljoser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8e8cbc/32.png) [@michaeljoser](https://www.ruby-forum.com/u/michaeljoser)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/joomla-in-a-subfolder/190304/1 "2010-06-17T16:22:45Z")

</div>

Hello,

I managed to get joomla clean url if joomla is in the root of my domain  
by following the wiki but i cant get it to work in the scenario  
[http://mydomain/joomlafolder/](http://mydomain/joomlafolder/) (i.e if joomla is in a folder in my  
website clean url doesnt work at all)

any ideas? i tried googling but no luck so far

Posted at Nginx Forum:

> **[joomla in a subfolder](https://forum.nginx.org/read.php?2,98800,98800#msg-98800)**
>
> Hello, I managed to get joomla clean url if joomla is in the root of my domain by following the wiki but i cant get it to work in the scenario http://mydomain/joomlafolder/ (i.e if joomla is in a folder in my website clean url doesnt work at all) any...

---

<div class="post-metadata">

**Author:** ![michaeljoser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8e8cbc/32.png) [@michaeljoser](https://www.ruby-forum.com/u/michaeljoser)\
**Post date:** [June 17, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/joomla-in-a-subfolder/190304/2 "2010-06-17T16:26:21Z")

</div>

problem fixed by modifying the code in the wiki to this:

location /joomlasubfolder/ {  
error\_page 404 = @joomla;  
log\_not\_found off;  
}

location @joomla {  
rewrite ^/(.\*)$ /joomlasubfolder/index.php?q=$1 last;  
}

Posted at Nginx Forum:

> **[Re: joomla in a subfolder](https://forum.nginx.org/read.php?2,98800,98806#msg-98806)**
>
> Hello, I managed to get joomla clean url if joomla is in the root of my domain by following the wiki but i cant get it to work in the scenario http://mydomain/joomlafolder/ (i.e if joomla is in a folder in my website clean url doesnt work at all) any...
