• 19-01-2016, 12:35:33
    #1
    Merhaba bir script nginx den dolayı çalışmadığını söyledi yazılımcı script htacessini nginx e çevirmek gerekiyormuş ücretli veya ücretsiz yardım bekliyoruz.



    # Turn on URL rewriting
    
    RewriteEngine On
    
    RewriteBase /depo/
    
    # Protect hidden files from being viewed
    <Files .*>
    	Order Deny,Allow
    	Deny From All
    </Files>
    
    # Protect application and system files from being viewed
    RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
    
    # List of files in subdirectories will not be displayed in the browser
    Options -Indexes
    
    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    AddDefaultCharset utf-8
     AddCharset UTF-8 .htm .html .txt
     AddType "text/html; charset=UTF-8" .htm .html .txt
     AddType "text/css; charset=UTF-8" .css
     AddType "text/javascript; charset=UTF-8" .js
    
    # Rewrite all other URLs to index.php/URL
    RewriteRule .* index.php/$0 [PT]
  • 19-01-2016, 12:47:55
    #2
    # nginx 
    charset utf-8;
    autoindex off;
    location /depo/application {
    rewrite ^/depo/(?:application|modules|system)\b.* /depo/index.php/$0 break;
    }
    location /depo/modules {
    rewrite ^/depo/(?:application|modules|system)\b.* /depo/index.php/$0 break;
    }
    location /depo/system {
    rewrite ^/depo/(?:application|modules|system)\b.* /depo/index.php/$0 break;
    }
    location /depo/ {
    if (!-e $request_filename){
    rewrite ^/depo/(.*)$ /depo/index.php/$0;
    }
    }
    location ~ \.* {
    deny all;
    }
    charset utf-8;
    
    location ~ /\..* {
    	deny all;
    	
    }
    rewrite ^/(?:application|modules|system)\b.* /depo/index.php/$0 last;
    if (!-f $request_filename){
    	set $rule_1 1$rule_1;
    }
    if (!-d $request_filename){
    	set $rule_1 2$rule_1;
    }
    if ($rule_1 = "21"){
    	rewrite /.* /depo/index.php/$0 ;
    }
  • 19-01-2016, 15:01:54
    #3
    Praetor adlı üyeden alıntı: mesajı görüntüle
    Merhaba bir script nginx den dolayı çalışmadığını söyledi yazılımcı script htacessini nginx e çevirmek gerekiyormuş ücretli veya ücretsiz yardım bekliyoruz.



    # Turn on URL rewriting
    
    RewriteEngine On
    
    RewriteBase /depo/
    
    # Protect hidden files from being viewed
    <Files .*>
    	Order Deny,Allow
    	Deny From All
    </Files>
    
    # Protect application and system files from being viewed
    RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
    
    # List of files in subdirectories will not be displayed in the browser
    Options -Indexes
    
    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    AddDefaultCharset utf-8
     AddCharset UTF-8 .htm .html .txt
     AddType "text/html; charset=UTF-8" .htm .html .txt
     AddType "text/css; charset=UTF-8" .css
     AddType "text/javascript; charset=UTF-8" .js
    
    # Rewrite all other URLs to index.php/URL
    RewriteRule .* index.php/$0 [PT]
    try_files $uri $uri/ /depo/index.php?$args;