Forum Moderators: phranque

Message Too Old, No Replies

htaccess file size

Just how many lines can be in the htaccess file?

         

Propools

4:39 pm on Jan 27, 2011 (gmt 0)

10+ Year Member



We're using the .htaccess file for our permanent 301's.
Is this correct?

Additionally, How many lines or file size is to big?

Currently we're just shy of 1,000 lines.

g1smd

8:38 pm on Jan 27, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is not the number of lines that is the problem, but the processing time for each request.

With intelligent pattern creation and the use of "local OR" notation it is likely the number of lines could be significantly cut.

Consider similar URLs and look at the
th(is|at)
and
[ct]hat
logic, etc.

jdMorgan

6:05 pm on Feb 7, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> 1,000 lines.

A good start... :)

Jim