نمایش نتایج: از شماره 1 تا 10 , از مجموع 173

موضوع: سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #11
    عضو جدید
    تاریخ عضویت
    Aug 2010
    نوشته ها
    52
    تشکر تشکر کرده 
    70
    تشکر تشکر شده 
    24
    تشکر شده در
    21 پست

    پیش فرض پاسخ : سوالات و مشکلات تاپیک : آموزش های از وب سرور nGinx - مبتدی تا پیشرفته

    با سلام
    من باز هم به مشکل برخوردم , یک فایل اچتی اکسس دارم که باید به انجینکس تبدیل کنم به شرح زیر:
    کد PHP:
    <IfModule mod_deflate.c>
    # DEFLATE by type - html, text, css, xml
    AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml

    # DEFLATE by type - javascript
    AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/x-js text/x-javascript

    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>


    ## Uncomment this if FollowSymLinks is not already enabled on your server
    #Options +FollowSymLinks

    ## Use mod rewrite
    ## Comment the line below if RewriteEngine not already enabled on your server
    RewriteEngine On

    ## Uncomment the line below and change the path if your script is installed
    ## in a different path than the root folder of your domain

    RewriteBase /blog

    RewriteRule 
    ^index.html index.php [nc]
    RewriteRule ^recent_ads.html recent_ads.php [nc]
    RewriteRule ^register.html register.php [nc]
    RewriteRule ^pre-register.html pre-register.php [nc]
    RewriteRule ^login.html login.php [nc]
    RewriteRule ^logout.html logout.php [nc]
    RewriteRule ^favorites.html favorites.php [nc]
    RewriteRule ^contact.html contact.php [nc]
    RewriteRule ^listings.html listings.php [nc]
    RewriteRule ^pre-submit.html pre-submit.php [nc]
    RewriteRule ^([0-9]+)-([^\/]+)?/content.htmlcontent.php?id=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)?/index.htmlindex.php?category=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)?/details.htmldetails.php?id=$[nc,qsa]
    RewriteRule ^([^\/]+)/([^\/]+)/([^\/]+)/recent_ads.htmlrecent_ads.php?page=$1&order=$2&order_way=$[nc,qsa]
    RewriteRule ^([^\/]+)/recent_ads.htmlrecent_ads.php?page=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)?/user_listings.htmluser_listings.php?id=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)?/([^\/]+)/([^\/]+)/([^\/]+)/user_listings.htmluser_listings.php?id=$1&page=$3&order=$4&order_way=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)/([^\/]+)/user_listings.htmluser_listings.php?id=$1&page=$[nc,qsa]
    RewriteRule ^([^\/]+)/([^\/]+)/([^\/]+)/favorites.htmlfavorites.php?page=$1&order=$2&order_way=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)?/store.htmlstore.php?id=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)?/([^\/]+)/([^\/]+)/([^\/]+)/store.htmlstore.php?id=$1&page=$3&order=$4&order_way=$[nc,qsa]
    RewriteRule ^([0-9]+)-([^\/]+)/([^\/]+)/store.htmlstore.php?id=$1&page=$[nc,qsa]

    ## Uncomment the following line when activating location subdomains
    ## Don't forget to replace yourdomainname.com with your own domain name !

    RewriteCond %{HTTP_HOST} !www.yourdomainname.com$ [NC]
    RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-_]+).yourdomainname.com [NC]
    RewriteRule (.*) %{SCRIPT_FILENAME}?crt_city=%[NC,QSA]

    RewriteCond %{REQUEST_URI} ^(.*)(/listings.html)(.*)$ [NC]
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteCond 
    %{SCRIPT_FILENAME} !-d
    RewriteRule 
    (.*) ./listings.php?$1

    # error page
    ErrorDocument 404 /error.php

    # redirect links accesses without www towards the ones with www
    #RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
    #RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] 
    ممنون میشم اگر راهنمایی ام کنید

    در ضمن این سایت رو هم جدیدا پیدا کردم که گفتم شاید به درد بقیه دوستان هم بخوره :

    http://winginx.com/htaccess
    ویرایش توسط ppro : September 23rd, 2012 در ساعت 02:56

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 32
    آخرين نوشته: January 5th, 2017, 01:24
  2. تاپیک جامع سوالات و مشکلات شما در مورد وب سرور Nginx
    توسط nginxweb در انجمن سوالات و مشکلات
    پاسخ ها: 30
    آخرين نوشته: September 20th, 2014, 13:03
  3. پیش فرض اموزش کامل نصب و کانفیگ Nginx
    توسط elementary در انجمن مباحث و منابع آموزشی
    پاسخ ها: 0
    آخرين نوشته: June 17th, 2014, 16:45
  4. پاسخ ها: 7
    آخرين نوشته: March 20th, 2013, 03:28
  5. آموزش های از وب سرور nGinx - مبتدی تا پیشرفته
    توسط ali_fattahi در انجمن وب سرورها
    پاسخ ها: 10
    آخرين نوشته: February 18th, 2013, 23:40

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •