LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Problem with mod_rewrite

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2009, 10:31 AM
Statskij Statskij is offline
Member
 
Join Date: Dec 2008
Posts: 27
Default Problem with mod_rewrite

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} ^www.site.com$ [NC]
RewriteRule ^(.*)$ http://site.com/$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 site.com/forum or site.com/forum/admincp, 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?
Reply With Quote
  #2  
Old 06-05-2009, 10:36 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #3  
Old 06-05-2009, 12:12 PM
Statskij Statskij is offline
Member
 
Join Date: Dec 2008
Posts: 27
When are you going to release 4.0.4?
Reply With Quote
  #4  
Old 06-05-2009, 12:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
maybe after next Tuesday.
Reply With Quote
  #5  
Old 06-05-2009, 09:44 PM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
Quote:
Originally Posted by Statskij View Post
So, we rewrite all requests except requests to several dirs to index.php. So, when I request site.com/forum or site.com/forum/admincp, 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?
I have a question regarding "when I protect admincp with htaccess", how you did it? I'd see if I can reproduce the problem.
Reply With Quote
  #6  
Old 08-14-2009, 01:59 AM
annoumure
Guest
 
Posts: n/a
Default Problem with mod_rewrite

Z,

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.

Regards,

DK
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:13 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.