Need this apache rewrites rewrite to nginx rewrite

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

It is time to make a web-service in help to them rewrite porters :wink:


Peter L.

On Sun, 2009-09-13 at 14:33 +0200, Luka H. 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

Cliff W. wrote:

On Sun, 2009-09-13 at 14:33 +0200, Luka H. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs