Welcome! Log In Create A New Profile

Advanced

Need help with rewrite rule

Posted by odimitrov 
Need help with rewrite rule
February 11, 2011 02:52AM
Hello to All,

I'm new to nginx but really like it. I have a site with pictures on Joomla CMS. About a week fighting NOT to proxy php to apache. Problems with my migration are solved one by one but i want to look for a bit help with something:

Lets say i have a localhost/dir/index.php file who use POST method and generate a code with html to preview pictures stored on /var/www ( root nginx dir ). So my problem is: when i use echo(); method in my php code it simply change the code:
[code]
<img src="/images/Arizona-Muse-Willy-Vanderperre/Arizona-Muse-Willy-Vanderperre7.jpg" />
[/code]
to code
[code]
<img src="/dir/images/Arizona-Muse-Willy-Vanderperre/Arizona-Muse-Willy-Vanderperre7.jpg" />
[/code]

So my question is can i rewrite that get because my picture is in /images..... not in /dir/images/...


Any of your help will be appreciated

Br,
Ognyan
Re: Need help with rewrite rule
February 12, 2011 03:21AM
I made it .. Thanks for not helping me :) learned something.
Re: Need help with rewrite rule
June 17, 2011 10:55AM
Hi what was the solution? can you give some hints in this post please? Thanks.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready