Welcome! Log In Create A New Profile

Advanced

.htaccess problem

Posted by Blackproxy 
.htaccess problem
July 18, 2009 05:34AM
Hello,

sorry for my bad english, i`m german.
I use nginx 0.7.60 on my debian server and i have a problem with my htaccess and the rewrite rule.
The .htaccess
http://nopaste.info/d27bde2856.html

and i try to convert the rule to nginx but it works not.
I hope someone can help me.
Re: .htaccess problem
July 18, 2009 10:50AM
Try:

[code]
rewrite ^/play-([0-9]+) /play.php?id=$1 last;
rewrite ^/full-([0-9]+) f/ull.php?id=$1 last;
rewrite ^/cat-([0-9]+)?-p([0-9]+) /games.php?cat=$1&page=$2 last;
rewrite ^/profile-(.*)\.html$ /page.php?page=viewprofile&user=$1 last;
rewrite ^/page-(.*)\.html$ /page.php?page=$1 last;
rewrite ^/rss-(.*)\.xml$ /xml.php?action=$1 last;
rewrite ^/antispamnumber.jpg /antispamnumber.php last
[/code]

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

Click here to login

Online Users

Guests: 85
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