How to rewrite this correctly?

Glen Lumanau glen at
Thu Jan 29 05:52:36 MSK 2009



I have a directory images/stories (using joomla)

I need to rewrite this into my other subdomains


Here's what I already set and works. But not as I expected

        location /images/stories {

          rewrite ^(.*)$$1 redirect;



When it's accessed by users, it will redirect me to


How can I rewrite it into ?


Thank's a lot before


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list