Problem with mod_rewrite

Discussion in 'Apache Migration/Compatibility' started by Statskij, Jun 5, 2009.

  1. Statskij

    Statskij Active Member

    I have a problem with my site and have no ideas about how to solve it. In my root directory I have .htaccess file like this:

    Options -Indexes
    Options +FollowSymLinks
    Options -MultiViews
    AllowOverride None
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^$ [NC]
    RewriteRule ^(.*)$$1 [R=301,L]
    RewriteCond $1 !^(index\.php|css|img|files|swf|js|forum)
    RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

    So, we rewrite all requests except requests to several dirs to index.php. So, when I request or, everything is ok - there is no rewrite to index.php. But when I protect admincp with htaccess, root .htaccess starts to rewrite forum/admincp to index.php. Any ideas?
  2. mistwang

    mistwang LiteSpeed Staff

    This issue has been addressed in our 4.0.4 build.
    For earlier release, you need to add a custom error page for 401, usually, you just create a file with name 401.shtml under document root directory.
  3. Statskij

    Statskij Active Member

    When are you going to release 4.0.4?
  4. mistwang

    mistwang LiteSpeed Staff

    maybe after next Tuesday.
  5. auser

    auser Super Moderator

    I have a question regarding "when I protect admincp with htaccess", how you did it? I'd see if I can reproduce the problem.
  6. annoumure

    annoumure Guest


    WP hijacks every REQUEST_URI sent to its directory and sends it all to its index.php. Yes, your plugin creator would have to modify the mod_rewrite AND some WP module to deal with the change in the URI.



Share This Page