# Rewrite rules

**URL:** <https://www.ruby-forum.com/t/rewrite-rules/204157>\
**Category:** NGINX\
**Created:** [March 6, 2011, 11:40pm UTC](https://www.ruby-forum.com/t/rewrite-rules/204157 "2011-03-06T23:40:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 6, 2011, 11:40pm UTC](https://www.ruby-forum.com/t/rewrite-rules/204157/1 "2011-03-06T23:40:47Z")

</div>

I have to make a blog application in multiple languages, to do this, I  
decided to use zinnia and create to separate urls [blogfrench.com](http://blogfrench.com) and  
[blog.com](http://blog.com) (this is an example). I also used the multisite ability of  
django to have a single admin interface for both blogs.

It works great, now I have a non-pythonic problem.

I want both blogs to be read with the same url:

that is, instead of

> **[Sooma](https://sooma.com/pt-pt/?ref=blog.com)**
>
> Cloud based email solution on a highly customizable webmail platform

[blogfrench.com](http://blogfrench.com)

I want

> **[Sooma](https://sooma.com/pt-pt/?ref=blog.comen%2Fweblog)**
>
> Cloud based email solution on a highly customizable webmail platform

> **[Sooma](https://sooma.com/pt-pt/?ref=blog.comfr%2Fweblog)**
>
> Cloud based email solution on a highly customizable webmail platform

So. Does anyone know where I can find help in creating rewrite rules?  
I have no idea how to do it (btw, I’m using nginx if that helps)

Posted at Nginx Forum:

> **[rewrite rules](https://forum.nginx.org/read.php?2,180912,180912#msg-180912)**
>
> I have to make a blog application in multiple languages, to do this, I decided to use zinnia and create to separate urls blogfrench.com and blog.com (this is an example). I also used the multisite ability of django to have a single admin interface...
