Welcome! Log In Create A New Profile

Advanced

redirect help please... this one's driving me mad!

March 21, 2014 12:46AM
I'm tryiing to migrate a site that uses codeigniter behind modx to draw
pages, and this is the block that breaks the site when I remove it
from .htaccess...

RewriteRule ^$ home [L]
RewriteCond %{HTTP_HOST} ^(?:www\.)?([^\.]*)\..*$ [NC]
RewriteCond %{REQUEST_URI} !^/?$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?q=/_%1/pages/$1 [L,QSA]


Does anyone have an idea on how to rewrite that? From debugging code
added to the site, it seems to go through index.php 3 times for each
page draw!

Any suggestions gratefully received - I can't get my head around the
params from the condition and those from the rule and how to do this in
nginx!

Steve


--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

redirect help please... this one's driving me mad!

GreenGecko March 21, 2014 12:46AM

Re: redirect help please... this one's driving me mad!

unclepieman March 21, 2014 01:16AM

Re: redirect help please... this one's driving me mad!

GreenGecko March 21, 2014 06:38PM

Re: redirect help please... this one's driving me mad!

Francis Daly March 21, 2014 08:18PM

Re: redirect help please... this one's driving me mad!

Jason Woods March 22, 2014 05:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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