Hi,
I am moving a script I wrote from a Apache server to Nginx and am having troubles with mod rewrite.
So my question is, how would I rewrite this for Nginx?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^([^.]+)\.zpc$ $1.php [L]
RewriteRule ([^/\.]+)/?.zpc$ mainpage.php?page=$1 [L]
RewriteRule ^article/([^-]+)-([^&]+)\.zpc$ /articles.php?article_id=$1&article_name=$2 [L]
</IfModule>
Clients must be able to execute .zpc files as php files so they wouldn't see the extension.
Thanks,
Erin
Edited 1 time(s). Last edit at 08/01/2011 11:14AM by Erin.