# Nginx rewrite stikked

**URL:** <https://www.ruby-forum.com/t/nginx-rewrite-stikked/221633>\
**Category:** NGINX\
**Created:** [July 23, 2012, 4:23pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-stikked/221633 "2012-07-23T16:23:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 23, 2012, 4:23pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-stikked/221633/1 "2012-07-23T16:23:44Z")

</div>

Hi,  
I’m installing stikked (a pastebin web server) on my server. I’m having  
trouble, I want to rewrite all url like this :  
[http://pastebin.okira.net/index.php/lists](http://pastebin.okira.net/index.php/lists) like that :  
[http://pastebin.okira.net/index.php?lists](http://pastebin.okira.net/index.php?lists)  
There is a rewrite rule in the install howto but it didn’t work :

location / {  
try\_files $uri $uri/ @stikked;  
}  
location @stikked {  
rewrite ^/(.\*)$ /index.php?/$1 last;  
}

Thanks for help, Regards.
