adssss

Thursday, August 7, 2014

Need help with Apache to Nginx Rewrite Rules

Web VPS

I have an apache .htaccess that I need to convert to Nginx in order to run on my LEB.


RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php?/$0 [PT,L]


I followed some converters online and it gave me this


# nginx configuration location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?/$0 break; } }


However, nginx won't start and is complaining about


nginx: [emerg] unknown "0" variable


Any help would be greatly appreciated!





LowEndTalk http://ift.tt/X3K3vK Need help with Apache to Nginx Rewrite Rules Web vps hosting server Linux - Windows webvps.blogspot.com

0 comments:

Post a Comment

 

© Copyright Alam Perwira