Welcome! Log In Create A New Profile

Advanced

Another conversion from .htaccess rewrites, 4 simple lines I think

Posted by gregg 
Another conversion from .htaccess rewrites, 4 simple lines I think
January 22, 2012 02:49PM
I tried to convert this properly, and I just dont seem to be able to. Here is my code:


.htaccess:

RewriteEngine On
RewriteRule ^freshadmin/?$ freshadmin/$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /index.php?q=$1 [QSA,L]


nginx: (this was my attempt, it isnt working. http://www.domain.com/freshadmin/ is resulting in "too many redirects")

rewrite ^/(freshadmin/.*)$ http://www.domain.com/$1 break;
try_files $uri $uri/ /index.php?q=$uri&$args;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready