Forum Moderators: coopster & phranque

Message Too Old, No Replies

Mod_Rewrite

rule lengths ???

         

Hudzon

6:51 pm on Apr 2, 2002 (gmt 0)



can a length limit or directory depth be set by the server and can this be changed with a htaccess override?

i.e. I have two RewriteRules one works and the second does not??

RewriteRule ^(.*)ikonboard/(.*)/(.*)/(.*)/(.*)\.htm$ $1cgi-bin/ikonboard/ikonboard.cgi?$2=$3;$4=$5

will rewrite
[myhost.net...] to
[myhost.net...]
Just fine

But...

RewriteRule ^(.*)ikonboard/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.htm$ $1cgi-bin/ikonboard/ikonboard.cgi?$2=$3;$4=$5;$6=$7

Will not rewrite
[myhost.net...]
to
[myhost.net...]

both rules will work on one host but only the first one will work on a second host ??

sugarkane

8:51 am on Apr 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hudzon, I'm not aware of any limitations on the rule lengths.

The second rule you listed would actually rewrite
[myhost.net...]

to

[myhost.net...]

Is that the effect you were looking for?