Skip navigation.

apache.mod_rewrite's working logic is still in mist

java
This is my first time to blog in one English blog seems something. Thre emblog just like only support the private message, and, the blogger.com, I even can not post connectinon even that I can not login the blog for myself. These days I cost hours to collect the English forum for techniques helps, it is not joke, but really, normal I want to dicussed with domestic guys in china,however, few people know the details in the forum, only hot in anti-japan, anti-usa,anti..., I do not know what else they wont anti for, could only be the CP, what they actually be fear for.

I collected the forums not for the political purpose, but I need tips as long as I meet trouble what can not get idear from mass of document, but short of key tips. The current issue is the mod-rewrite, I have stepped in rather than yesterday, but still confused by the mod_rewrite system-logic.

I am actually not very clearly after the mass source reading.

1.as long as the rewriterule as :

RewriteRule ^b\.html$ a.html [L]

RewriteRule ^a\.html$ b.html [L]

it means the two rules work independant,right?

as:

RewriteRule ^b\.html$ a.html [C]

RewriteRule ^a\.html$ c.html [L]



if means b->a ->c right? my problems.



regarding to the RewriteCond;

RewriteCond A;

RewriteCond B;

RewriteRule no1;

it means if(A&&B) then no1; right?



RewriteCond A [OR];

RewriteCond B;

RewriteRule no1;

it means if(A||B) then no1; right?



then how about :

RewriteCond A;

RewriteRule no1;

RewriteCond B;

RewriteRule no2;

it means

if(A) then no1; else if(B) no2;

is'nt right?



what I confused in? I can not suffer what the exactly container/context/namingspace in the rewriteCond/rewriteRule.



and about the .htaccess, what different between the

rewriterule/cond set in the httpd.conf/rootplain Vs the $DocumentRoot/.htaccess???



then how about the different in the Virutalhost documentRoot Vs its $VirtualHostDocumentRoot/.htaccess??



That is it, may be I have not caught the whole threads how to defined
in precise, I always feel something short, to defined to rules for
engine to work exactly, with no misunderstand.

I stepped into the mod_rewrite only for the purpose to provide SEO, plotting for hours work, however, seems only the mod-rewrite howto could be pasted as one whole book. The topics posted in the forum normally can reply few or better, but anyway, not in 24 hours online, so I should begun two or three work thread in later working days.

Frederick