Need this apache rewrites rewrite to nginx rewrite

Luka Horvatic lists at ruby-forum.com
Mon Sep 14 15:47:59 MSD 2009


Cliff Wells wrote:
> On Sun, 2009-09-13 at 14:33 +0200, Luka Horvatic wrote:
>> Options +FollowSymlinks
>> RewriteEngine on
>> RewriteRule visit/(.*)/$ /logs.php?q=visit&linkfull=$1
>> RewriteRule go/(.*)/$ /logs.php?q=go&linkcode=$1
>> RewriteRule link/(.*)/$ /logs.php?q=link&linkid=$1
>> RewriteRule site/(.*)/$ /logs.php?q=site&linkname=$1
> 
> Just change "RewriteRule" to "rewrite", eg:
> 
>   rewrite visit/(.*)/$ /logs.php?q=visit&linkfull=$1
> 
> Cliff

Ah it's works,i actually tried this yesterday,but i forgot to put 
logs.php into root directory  which is why it didn't worked.Also you 
forgot to put ; on end of line.
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list