How would you use regx in nginx for this:
RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]
I’m not sure to how to do this?
Thanks For the Help
How would you use regx in nginx for this:
RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]
I’m not sure to how to do this?
Thanks For the Help
On Sun, Feb 15, 2009 at 01:52:19PM -0700, Paul G. wrote:
How would you use regx in nginx for this:
RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]I’m not sure to how to do this?
location / {
if ($args = “”) {
rewrite ^ /index.php?title=$request_uri? last;
}
}
location /Special:Search {
rewrite ^ /index.php?title=$request_uri?;
}
Thank You
On Tue, Feb 17, 2009 at 11:59:17AM -0700, Paul G. wrote:
I’m sorry I am new to nginx but what does value $args hold and where does
the value come from?
$args is the same as $query_string.
I’m sorry I am new to nginx but what does value $args hold and where
does
the value come from?
See http://wiki.codemongers.com/NginxHttpCoreModule#var_args or the
original
docs http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html (not
sure if
there is an anchor) which often autotranslate fairly readably if
something
is missing or out of date in the wiki.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs