Welcome! Log In Create A New Profile


Mod_rewrite to nginx Rewrite

Posted by Trikun3 
Mod_rewrite to nginx Rewrite
June 18, 2010 12:37PM
I'd really appreciate it if someone could take the time to figure out how to convert this. I've been trying for about 14 hours total in the past two days to get this working.

Our file structure is similar to:


We have everything loading from root, so when I visit:

It should direct to:

In /beta/, we have:
[code]<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /beta

RewriteRule ^/?abc/(.*).png /_process_abc.php?file=$1
RewriteRule ^/?process.php/?$ /processme/here
RewriteRule ^/?xyz/here/?$ /processme/here

RewriteRule ^/?to/questions/?$ /site/_questions.php
RewriteRule ^/?to/(.+?)$ /ci/index.php/$1

RewriteCond %{HTTP_HOST} ^domain1.com$
RewriteCond %{REQUEST_URI} !^/via/
RewriteRule ^(.*)$ via/index.php?t=$1 [L]

RewriteCond %{HTTP_HOST} ^domain2.com$
RewriteCond %{REQUEST_URI} !^/beta/site
RewriteCond %{REQUEST_URI} !^/beta/html
RewriteRule ^(.*)$ site/index.php?p=$1 [L]

Re: Mod_rewrite to nginx Rewrite
June 21, 2010 02:28PM
Nevermind. I've figured out what I needed.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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