Activity Stream
48,167 MEMBERS
6956 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member
    Website's:
    gr-tv.eu imgfly.eu

    Exclamation Nginx rewrite rules help

    Im looking for some help to make those nginx rules run smoothly from apache2 htaccess :

    RewriteRule ^api$ api.php [L]
    RewriteRule ^admin/(.*) admin/index.php [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]

    Thanks for the help!
    GoDofAdeN Reviewed by GoDofAdeN on . Nginx rewrite rules help Im looking for some help to make those nginx rules run smoothly from apache2 htaccess : RewriteRule ^api$ api.php RewriteRule ^admin/(.*) admin/index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php Thanks for the help! Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    imdber.org justpaste.me
    Why not just use nginx infront of apache so you won't have to deal with these sort of problems.

  4.     
    #3
    Member
    Website's:
    bypassx.com
    @Apathetic: any good tutirial about how to run nginx in front of apache?

  5.     
    #4
    Member
    Website's:
    vjetnamnet.com nguoihaiduong.com filezdown.com
    give me your apache2 htaccess file. I will convert help you.

  6.     
    #5
    Member
    Website's:
    gr-tv.eu imgfly.eu
    Thats all my htaccess file:

    Code: 
    RewriteRule ^api$ api.php [L]
    RewriteRule ^admin/(.*) admin/index.php [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
    Thanks in advance for the help sir

  7.     
    #6
    Member
    Website's:
    vjetnamnet.com nguoihaiduong.com filezdown.com
    Try this:

    if ($rule_0 = ""){
    rewrite ^/api$ /api.php last;
    }
    if ($rule_1 = ""){
    rewrite ^/admin/(.*) /admin/index.php last;
    }
    if (!-f $request_filename){
    set $rule_2 1$rule_2;
    }
    if (!-d $request_filename){
    set $rule_2 2$rule_2;
    }
    if ($rule_2 = "21"){
    rewrite /. /index.php last;
    }

  8.     
    #7
    Member
    Website's:
    gr-tv.eu imgfly.eu
    unknown "rule_0" variable

    I know this website too : http://www.anilcetin.com/


    ---------- Post added at 10:44 PM ---------- Previous post was at 03:56 AM ----------

    RewriteRule ^api$ api.php [L]

    Just this rule missing, please help!

  9.     
    #8
    Respected Member
    Then you should have posted what you had before wasting everyones time.

  10.     
    #9
    Member
    Website's:
    gr-tv.eu imgfly.eu
    too bad that website is outdated, and still 1 rule is missing. simply their conversions dont work on latest nginx release.

    also, dont be rude, Im here to ask for help, not to waste your time, if you cant help, dont reply, thanks.

  11.     
    #10
    Respected Member
    That is not rude what I said.

    Your statement you know that site too was being rude to the one who spent the time trying too help.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Please Clarify The Correct Rules -Individual Mods Have Different Rules
    By Ladybbird1 in forum Feedback and Suggestions
    Replies: 49
    Last Post: 16th May 2012, 01:32 PM
  2. Lighttpd Rewrite Rules for vBSEO (Vbulletin)
    By CapoSicario in forum vBulletin
    Replies: 2
    Last Post: 26th Aug 2011, 02:53 PM
  3. [WCDDL] Mod Rewrite Help
    By DEViANCE in forum Web Application/Script Support
    Replies: 1
    Last Post: 28th Jun 2011, 04:28 PM
  4. Nginx rewrite rules for PHPBB SEO
    By LuDo8 in forum phpBB
    Replies: 0
    Last Post: 6th Jun 2011, 12:27 AM

Tags for this Thread

BE SOCIAL