# Joomla // Rewrite Url

**URL:** <https://www.ruby-forum.com/t/joomla-rewrite-url/219230>\
**Category:** NGINX\
**Created:** [April 24, 2012, 7:17pm UTC](https://www.ruby-forum.com/t/joomla-rewrite-url/219230 "2012-04-24T19:17:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 24, 2012, 7:17pm UTC](https://www.ruby-forum.com/t/joomla-rewrite-url/219230/1 "2012-04-24T19:17:50Z")

</div>

I have problems in joomla rewrite the url when I’m in another menu that  
is not the main menu.

examples:

Example 1:  
Returns: [http://www.xxx.pt/a-minha-area/index.php](http://www.xxx.pt/a-minha-area/index.php)  
Should give: [http://www.xxx.pt](http://www.xxx.pt)

Example 2:  
Returns:  
[http://www.xxx.pt/a-minha-area/anuncios/index.php?option=com\_listbingo&t](http://www.xxx.pt/a-minha-area/anuncios/index.php?option=com_listbingo&t)  
…  
It should run: [http://www.xxx.pt/index.php?option=com\_listbingo&t](http://www.xxx.pt/index.php?option=com_listbingo&t)  
…  
Should give: [http://www.xxx.pt/a-minha-area/anuncios/myads](http://www.xxx.pt/a-minha-area/anuncios/myads)

Any Solution to fix this?

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,225718,225718#msg-225718](http://forum.nginx.org/read.php?2,225718,225718#msg-225718)

---

<div class="post-metadata">

**Author:** ![borgita](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d9b06d/32.png) [@borgita](https://www.ruby-forum.com/u/borgita)\
**Post date:** [April 24, 2012, 8:25pm UTC](https://www.ruby-forum.com/t/joomla-rewrite-url/219230/2 "2012-04-24T20:25:26Z")

</div>

On Tue, Apr 24, 2012 at 01:16:54PM -0400, borgita wrote:

Hi there,

> I have problems in joomla rewrite the url when I’m in another menu that  
> is not the main menu.

[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/Joomla) links to [http://docs.joomla.org/Nginx](http://docs.joomla.org/Nginx)

Both look “official” enough that it is probably a good idea to start  
with the configuration there.

The configuration file you posted looks a lot more complicated.

> Example 1:  
> Returns: [http://www.xxx.pt/a-minha-area/index.php](http://www.xxx.pt/a-minha-area/index.php)  
> Should give: [http://www.xxx.pt](http://www.xxx.pt)

I’m not sure what you mean by this.

There is one specific url that you expect to give one response but in  
fact gives another? If you can provide the initial url, it should be  
possible to work out from your configuration what nginx will do with it.

“curl” is a very good tool for testing how individual requests are  
processed.

Anyway: if you use a configuration more like what the project documents,  
do you see the same problems?

Good luck,

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
