Forum Moderators: phranque

Message Too Old, No Replies

Number of redirects in htaccess

rule of thumb when it becomes bloat?

         

steveb

10:53 pm on Jun 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've always been a deleter of dead pages rather than a redirecter, but I've done some housecleaning where it now makes sense to add some redirects. (I already have a 301 in place for the www non-www issue.)

I'm using this format:

RedirectMatch permanent ^/dir1/page1.html$ http://www.example.com/dir2/dir3/

RedirectMatch permanent ^/dir4/page4.html$ http://www.example.com/dir5/dir6/

First question: I'm skipping a line between each redirect. Is that right/good, or can I put them like:

RedirectMatch permanent ^/dir1/page1.html$ http://www.example.com/dir2/dir3/
RedirectMatch permanent ^/dir4/page4.html$ http://www.example.com/dir5/dir6/
RedirectMatch permanent ^/dir7/page1.html$ http://www.example.com/dir8/dir9/
etc.

Second, I'll probably have ten of these at most. That should be fine, right? Or will that be "htaccess bloat"?

I'm also thinking of adding hotlinking entries (if there is a way to solve the Norton issue I keep runinng into), so I'm just wondering if there is a rule of thumb for lines in htaccess or size of the file or anything like that. Thanks.

kevinpate

12:11 am on Jun 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



no need to skip a line between, and 10 redirects is not significant (not at all)