Welcome! Log In Create A New Profile

Advanced

Need to rewrite this apache rewrite

Posted by roguehosting 
Need to rewrite this apache rewrite
September 12, 2009 01:28PM
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
Re: Need to rewrite this apache rewrite
September 14, 2009 12:04PM
Try

[code]
rewrite /visit/(.*)/$ /logs.php?q=visit&linkfull=$1 last;
rewrite /go/(.*)/$ /logs.php?q=go&linkcode=$1 last;
rewrite /link/(.*)/$ /logs.php?q=link&linkid=$1 last;
rewrite /site/(.*)/$ /logs.php?q=site&linkname=$1 last;
[/code]

--
Jim Ohlstein
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready