FilesMatch & php .htaccess options

Discussion in 'Bug Reports' started by priestjim, May 25, 2009.

  1. DraCoola

    DraCoola Member

    I'm doing nothing, George.
    Except just switching between LSWS and Apache in purpose to test accesing mp3smackers.com from another server.

    It is so unpermanent. Random attend.
  2. mistwang

    mistwang LiteSpeed Staff

    Then, you should not mix them together, it only make it harder to identify the cause of the problem.


    The screen shot shows that the redirect is actually sent by PHP, LSWS is just the messenger.


    What the actually command of "HEAD"? I think it is just a command alias.
    I tried "curl -I mp3smackers.com", it works fine.
    "lynx -head -mime_header http://www.mp3smackers.com" also works.


    Not sure, as my firefox never has problem with this site from beginning.
    Which browser you used?
  3. X-Nitro

    X-Nitro New Member

    Let me introduce my self, I'm X-Nitro 2nd Administrator of DraCoola Multimedia. This bugs only occured on Wordpress Instalation. For example, like some pictures below :

    != Wordpress :
    Code:
    $ curl -I dracoola.com
    [​IMG]

    MyBB Bulletin Board
    Code:
    $ curl -I kikil.org
    [​IMG]

    Now, I will try get header information from some victims (checked at 08:13 GMT+7)
    [​IMG]

    And then, I'll try to get header information again from some victims above.
    [​IMG]

    Automatic Cured, huh ? o_O


    Now, other victims appeared.
    http://idwz.net
    http://moviedb.asia
    [​IMG]

    Complete .htaccess for idwz.net (Permalinks: /downloads/%postname%.aspx) :
    PHP:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase 
    /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
    %{REQUEST_FILENAME} !-d
    RewriteRule 
    . /index.php [L]
    </
    IfModule>
    # END WordPress
    Complete .htaccess for moviedb.asia (Permalinks: /%postname%.aspx/?%post_id%.download) :
    PHP:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase 
    /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
    %{REQUEST_FILENAME} !-d
    RewriteRule 
    . /index.php [L]
    </
    IfModule>
    # END WordPress
    I'm desperate. :(
  4. X-Nitro

    X-Nitro New Member

    Update :

    Checked @ 15:53 GMT +7
    [​IMG]

    I do nothing.
  5. DraCoola

    DraCoola Member

    Pardon me for double issue reporting on this thread.
    It perhaps better to split my wordpress issue to another thread, so it can still focused per issue per thread by anyone.
  6. auser

    auser Super Moderator

    Accessing
    http://idwz.net
    http://moviedb.asia

    there is no problem(infinite loop). Already resolved without any change?

    with following rewrite rule only:
    I tested latest lsws 4.0.4(standard version) and apache 2.2.11
    None will cause infinite redirect loop.

    Are there any other possible rewrite rules applied?
    I noticed:
    http://idwz.net/a
    http://idwz.net/b
    i.e., a single letter following http://idwz.net/ will redirect to other page;
    while 2 letters etc will go "Not Found"
    http://idwz.net/aa -- Not Found
    http://idwz.net/bb -- Not Found

    maybe this is a wordpress module, and has conflict with the .htaccess?
    Just a guess.
  7. X-Nitro

    X-Nitro New Member

    @auser,
    yup, already solved without any changes :) I've try disable all module, but useless.
    Notes :
    This errors only occured at wordpress instalation.
  8. auser

    auser Super Moderator

    just to confirm: so now works well? or problem still occur randomly?
  9. mistwang

    mistwang LiteSpeed Staff

  10. X-Nitro

    X-Nitro New Member

    so far no problem :)
  11. DraCoola

    DraCoola Member

  12. X-Nitro

    X-Nitro New Member

    Screenshot below :
    [​IMG]

    Get header from another server :
    [​IMG]

    Last Checked @ 02:44 GMT +7
    Last edited: May 30, 2009
  13. mistwang

    mistwang LiteSpeed Staff

    It is the LSWS disk cache feature, not WP cache plugin, disabled it for now.
    The problem that WP redirect www.domain.com to domain.com, if LSWS cache the redirect, it will cause trouble. We have to change the cache code to put requests to www.domain.com and domain.com in two separate cache.
  14. DraCoola

    DraCoola Member

    Thank you in advance, George.
    I hope (and I am sure) the changed code will be included in the official release of 4.0.4 :)
  15. mistwang

    mistwang LiteSpeed Staff

    updated 4.0.4 has addressed this. you can give it a try.
  16. mistwang

    mistwang LiteSpeed Staff

    Please wait for 10 minutes to have the updated version uploaded.
  17. DraCoola

    DraCoola Member

    Awesome. I will try it as soon as it available.
    So many thanks for your rapid technical support.
  18. mistwang

    mistwang LiteSpeed Staff

    OK, it has been uploaded.
  19. DraCoola

    DraCoola Member

    I'm going to update my LSWS, right now.
    You're just so wonderful, George.
    Thank you.
  20. DraCoola

    DraCoola Member

    Done, updated.
    With LSWS cache re-enabled.
    And I have empty my cache dir before this.
    I hope this can make the sweet change to wordpress + LSWS.

Share This Page