Hi, I have a simple redirection of my html file on php : server { location ~ .html$ { rewrite ^/(.*).html$ /index.php?page=$1; } } And i want that only if the html file are on root : domain.tlm/file.html Thank you all ! Sorry my english is badby CactO_o's - How to...
Nobody can help me ?by CactO_o's - Nginx Mailing List - English
Hi all, I test to rewrite the sub-domain in /etc/nginx/site-available/default and I would know if exist a function for add GET argument ? For example : if( $host ~* "(.*)\.*\.{2,4}" ) { addGet sd $1; } This code add "?sd=$1" or "&sd=$1" (if there are already arguments GET before or not) If not exist how can I do for write this function (oby CactO_o's - Nginx Mailing List - English
Nobody know ? !by CactO_o's - Nginx Mailing List - English
Thank you Igor but I think your reply is incorect ... In your exemple : server { server_name domain.tlm; location / { rewrite ^/(.*).html$ http://www.domain.tlm/index.php?sd=&page=$1; } location /php/ { rewrite ^/(.*).html$ http://www.domain.tlm/index.php?sd=; } return 404; } server { server_name www.domain.tlm; location ~ \.html$ { rewrite ^/(.*).html$ http://by CactO_o's - Nginx Mailing List - English
Igor Sysoev Wrote: ------------------------------------------------------- > On Thu, Jul 30, 2009 at 01:23:52PM -0400, > CactO_o's wrote: > > > Hi all, > > > > In first, i'm french and I don't speak english > very well, so I hope you understand me =] > > > > So, I want redirect the Html page to index.php > with GET argument, in this modelby CactO_o's - Nginx Mailing List - English
Sorry I have forget information !! When I want to restart Nginx I have error : Bender:~# /etc/init.d/nginx restart Restarting nginx: 2009/07/30 18:35:44 2646#0: "if" directive is not allowed here in /etc/nginx/sites-enabled/default:24 nginx. if ( $host ~* "(.*)\.(*\.{2,4})" ) ]by CactO_o's - Nginx Mailing List - English
Sorry I have forget information !! When I want to restart Nginx I have error : Bender:~# /etc/init.d/nginx restart Restarting nginx: 2009/07/30 18:35:44 2646#0: "if" directive is not allowed here in /etc/nginx/sites-enabled/default:24 nginx. if ( $host ~* "(.*)\.(*\.{2,4})" ) ]by CactO_o's - Nginx Mailing List - English
Hi all, In first, i'm french and I don't speak english very well, so I hope you understand me =] So, I want redirect the Html page to index.php with GET argument, in this model : http://www.domaine.tlm/.html => http://www.domaine.tlm/index.php?page= I have do that server { [...] location ~ .html$ { rewrite ^/(.*).html$ /index.php?page=$1;by CactO_o's - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
|