• 08-12-2019, 12:01:44
    #1
    Codecanyon üzerinden bir script satın aldım fakat default olarak Nginx destekliyor. Benim kullandığım sunucu cyberpanel(openlitespeed) Aşağıdaki kodları nasıl Apache yönlendirmelerine çevirebilirim.

    Edit: Nginx sunucu kuruldu.
  • 08-12-2019, 12:18:56
    #2
    takip
  • 08-12-2019, 16:51:03
    #3
    ⚡⭐SUNUCU OPTİMİZASYONU⭐🚀
    bu şekilde deneyebilirsiniz
    https://labs.gidix.de/nginx/
    RewriteEngine On
    RewriteBase /
            if (!-e $request_filename){
    rewrite ^/$ /index.php?url=home;
    }
    }
    
    location /admin {
    rewrite ^/admin$ /access.php;
    rewrite ^/admin/(.*)$ /access.php?page=$1;
    }
    
    location /s {
    rewrite ^/s/([^/]+)(/|)?$ index.php?url=share&share=$1;
    }
    
    location /media {
    rewrite ^/media/([^/]+)(/|)?$ index.php?url=home&media=$1;
    }
    
    location /lang {
    rewrite ^/lang/([^/]+)(/|)?$ index.php?url=lang&lang=$1;
    }
    
    location /page {
    rewrite ^/page/([^/]+)(/|)?$ index.php?url=page&page=$1;
    }
    
    location /articles {
    rewrite ^/articles(/|)$ index.php?url=articles;
    rewrite ^/articles/([^/]+)(/|)?$ index.php?url=articles&id=$1;
    rewrite ^/articles/([^/]+)/post/([^/]+)(/|)?$ index.php?url=articles&id=$1&post=$2;
    }
  • 08-12-2019, 18:59:43
    #4
    Berkay24 adlı üyeden alıntı: mesajı görüntüle
    bu şekilde deneyebilirsiniz
    https://labs.gidix.de/nginx/
    RewriteEngine On
    RewriteBase /
            if (!-e $request_filename){
    rewrite ^/$ /index.php?url=home;
    }
    }
    
    location /admin {
    rewrite ^/admin$ /access.php;
    rewrite ^/admin/(.*)$ /access.php?page=$1;
    }
    
    location /s {
    rewrite ^/s/([^/]+)(/|)?$ index.php?url=share&share=$1;
    }
    
    location /media {
    rewrite ^/media/([^/]+)(/|)?$ index.php?url=home&media=$1;
    }
    
    location /lang {
    rewrite ^/lang/([^/]+)(/|)?$ index.php?url=lang&lang=$1;
    }
    
    location /page {
    rewrite ^/page/([^/]+)(/|)?$ index.php?url=page&page=$1;
    }
    
    location /articles {
    rewrite ^/articles(/|)$ index.php?url=articles;
    rewrite ^/articles/([^/]+)(/|)?$ index.php?url=articles&id=$1;
    rewrite ^/articles/([^/]+)/post/([^/]+)(/|)?$ index.php?url=articles&id=$1&post=$2;
    }
    Hocam bu siteyi denedim fakat uyumlu çevirme işlemi yapmıyor maalesef. Bir çözüm bulamaz isem Nginx server kurup ordan devam edecem. Teşekkür ederim.