FilesMatch & php .htaccess options

mistwang

LiteSpeed Staff
#22
I thought, if from wordpress case, it doesn't caused by .httaccess.
Then, you should not mix them together, it only make it harder to identify the cause of the problem.


As my screen shoots for LSWS and Apache at above, there is "301 moved permanently" that have been makes page redirected in loop.

I'm Also not doing fixing for anything for that wordpress cases.
Because I have just replacing each other between apache and LSWS, and then it magically fixed.
The screen shot shows that the redirect is actually sent by PHP, LSWS is just the messenger.


Because if it accessed from command line : "HEAD mp3smackers.com", there are still shows for redirect loop.
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.


So I guest the "finally fixed shown on browser" cames from cache after using Apache temporarily before it went back to LSWS?
Not sure, as my firefox never has problem with this site from beginning.
Which browser you used?
 
#23
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


MyBB Bulletin Board
Code:
$ curl -I kikil.org


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


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


Automatic Cured, huh ? o_O


Now, other victims appeared.
http://idwz.net
http://moviedb.asia


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. :(
 

DraCoola

Well-Known Member
#25
Then, you should not mix them together, it only make it harder to identify the cause of the problem.
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.
 

auser

Super Moderator
#26
Accessing
http://idwz.net
http://moviedb.asia

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

with following rewrite rule only:
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
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.
 
#27
@auser,
yup, already solved without any changes :) I've try disable all module, but useless.
Notes :
This errors only occured at wordpress instalation.
 

mistwang

LiteSpeed Staff
#33
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.
 

DraCoola

Well-Known Member
#40
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.
 
Top