Rafa_F
                
              
              
              
                  
                  
              1
              
             
            
              Hello,
I cannot do following
request URL is http://domain.com/x4Zbs5B
It should be Domain.com
I tried
location / {
rewrite ^/([^/][a-zA-Z0-9]+)$ /index.php?download=$1
break;
try_files $uri $uri/ /index.php?download=$uri;
}
but it is downloading index.php file itself 
how to on nginx ?
             
            
              
              
              
            
            
                
                
              
           
          
            
            
              On Tue, Apr 05, 2016 at 08:11:44PM +0900, tseveendorj wrote:
Hi there,
request URL is http://domain.com/x4Zbs5B
It should be Domain.com
I tried
location / {
rewrite ^/([^/][a-zA-Z0-9]+)$ /index.php?download=$1 break;
Iβm not sure that the four characters β[^/]β are doing anything useful
on that line.
I am sure that βbreakβ is not what you want there. Just remove it.
            try_files $uri $uri/ /index.php?download=$uri;
    }
but it is downloading index.php file itself 
Presumably somewhere else in your config you tell nginx how to handle
/index.php?
f
Francis D.        [email protected]