You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Smith <js...@sanger.ac.uk> on 2022/10/26 11:52:31 UTC

RE: [users@httpd] specification of .htaccess [EXT]

If you have that many look at RewriteMap
https://httpd.apache.org/docs/current/rewrite/rewritemap.html
From: Frank Gingras <th...@apache.org>
Sent: 26 October 2022 02:42
To: users@httpd.apache.org
Subject: Re: [users@httpd] specification of .htaccess [EXT]

This is an extremely bad idea. Do you have access to your config files / the root user? If so, edit your vhost, and place your redirects in there instead.

Such a large .htaccess file will perform very poorly.

Further, avoid using mod_rewrite to redirect unless you have no choice.

On Tue, 25 Oct 2022 at 20:07, Yuji_myst <yu...@yahoo.co.jp.invalid>> wrote:

hello



Please tell me the specification of .htaccess.

Place .htaccess in the root directory of the website and set the redirect.

We are considering setting more than 2000 redirects.

Is there a limit on the number of redirect settings or .htaccess file size?



I read the .htaccess documentation, but couldn't find any mention of restrictions.



Best Regards,

Yuji





-- 
 The Wellcome Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.

Re: [users@httpd] specification of .htaccess [EXT]

Posted by Duy Khanh <ay...@yandex.com>.
  
Reply8:22, 2 tháng 11, 2022, Daniel Gruno <hu...@apache.org>:  

> On 2022-11-01 20:14, Yuji_myst wrote:  
>
>

>> Thank you.  
>  
>  I will try the method you replied.  
>  
>  Just to make sure, do you know if there is a limit on the number of  
>  redirect settings or .htaccess file size?  
>
>
>  
> Essentially, the limit is the file size limit in your file system, or  
> however much memory your server has. There are no set limits, that I can  
> recall. You can have 250,000 rules in there if you like, or a million...  
>  
>
>

>>  
>  
>  
>
>>

>>> 2022/10/26 20:54、James Smith  
>    
>  
>  If you have that many look at RewriteMap  
>  
>  <https://httpd.apache.org/docs/current/rewrite/rewritemap.html>  
>  
>  *From:*Frank Gingras <[thumbs@apache.org](mailto:thumbs@apache.org)>  
>  *Sent:* 26 October 2022 02:42  
>  *To:* [users@httpd.apache.org](mailto:users@httpd.apache.org)  
>  *Subject:* Re: [[users@httpd](mailto:users@httpd)] specification of
> .htaccess [EXT]  
>  
>  This is an extremely bad idea. Do you have access to your config files  
>  / the root user? If so, edit your vhost, and place your redirects in  
>  there instead.  
>  
>  Such a large .htaccess file will perform very poorly.  
>  
>  Further, avoid using mod_rewrite to redirect unless you have no choice.  
>  
>  On Tue, 25 Oct 2022 at 20:07, Yuji_myst
> <[yuji_myst@yahoo.co.jp.invalid](mailto:yuji_myst@yahoo.co.jp.invalid)  
>
> <[mailto:yuji_myst@yahoo.co.jp.invalid](mailto:yuji_myst@yahoo.co.jp.invalid)>>
> wrote:  
>  
>  hello  
>  
>  Please tell me the specification of .htaccess.  
>  
>  Place .htaccess in the root directory of the website and set the  
>  redirect.  
>  
>  We are considering setting more than 2000 redirects.  
>  
>  Is there a limit on the number of redirect settings or .htaccess  
>  file size?  
>  
>  I read the .htaccess documentation, but couldn't find any mention  
>  of restrictions.  
>  
>  Best Regards,  
>  
>  Yuji  
>  
>  \-- The Wellcome Sanger Institute is operated by Genome Research  
>  Limited, a charity registered in England with number 1021457 and a  
>  company registered in England with number 2742969, whose registered  
>  office is 215 Euston Road, London, NW1 2BE.  
>
>
>  
>  
> \---------------------------------------------------------------------  
> To unsubscribe, e-mail: [users-unsubscribe@httpd.apache.org](mailto:users-
> unsubscribe@httpd.apache.org)  
> For additional commands, e-mail: [users-help@httpd.apache.org](mailto:users-
> help@httpd.apache.org)  
>  
>

  
  
Re  
Sent from Yandex Mail for mobile


Re: [users@httpd] specification of .htaccess [EXT]

Posted by Daniel Gruno <hu...@apache.org>.
On 2022-11-01 20:14, Yuji_myst wrote:
> Thank you.
> 
> I will try the method you replied.
> 
> Just to make sure, do you know if there is a limit on the number of 
> redirect settings or .htaccess file size?

Essentially, the limit is the file size limit in your file system, or 
however much memory your server has. There are no set limits, that I can 
recall. You can have 250,000 rules in there if you like, or a million...

> 
> 
> 
>> 2022/10/26 20:54、James Smith
>> 
>>
>> If you have that many look at RewriteMap
>>
>> https://httpd.apache.org/docs/current/rewrite/rewritemap.html
>>
>> *From:*Frank Gingras <th...@apache.org>
>> *Sent:* 26 October 2022 02:42
>> *To:* users@httpd.apache.org
>> *Subject:* Re: [users@httpd] specification of .htaccess [EXT]
>>
>> This is an extremely bad idea. Do you have access to your config files 
>> / the root user? If so, edit your vhost, and place your redirects in 
>> there instead.
>>
>> Such a large .htaccess file will perform very poorly.
>>
>> Further, avoid using mod_rewrite to redirect unless you have no choice.
>>
>> On Tue, 25 Oct 2022 at 20:07, Yuji_myst <yuji_myst@yahoo.co.jp.invalid 
>> <ma...@yahoo.co.jp.invalid>> wrote:
>>
>>     hello
>>
>>     Please tell me the specification of .htaccess.
>>
>>     Place .htaccess in the root directory of the website and set the
>>     redirect.
>>
>>     We are considering setting more than 2000 redirects.
>>
>>     Is there a limit on the number of redirect settings or .htaccess
>>     file size?
>>
>>     I read the .htaccess documentation, but couldn't find any mention
>>     of restrictions.
>>
>>     Best Regards,
>>
>>     Yuji
>>
>> -- The Wellcome Sanger Institute is operated by Genome Research 
>> Limited, a charity registered in England with number 1021457 and a 
>> company registered in England with number 2742969, whose registered 
>> office is 215 Euston Road, London, NW1 2BE. 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] specification of .htaccess [EXT]

Posted by Yuji_myst <yu...@yahoo.co.jp.INVALID>.
Thank you.
 
I will try the method you replied.
Just to make sure, do you know if there is a limit on the number of redirect settings or .htaccess file size?


> 2022/10/26 20:54、James Smith
> 
> If you have that many look at RewriteMap
> https://httpd.apache.org/docs/current/rewrite/rewritemap.html
> From: Frank Gingras <th...@apache.org> 
> Sent: 26 October 2022 02:42
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] specification of .htaccess [EXT]
>  
> This is an extremely bad idea. Do you have access to your config files / the root user? If so, edit your vhost, and place your redirects in there instead.
>  
> Such a large .htaccess file will perform very poorly.
>  
> Further, avoid using mod_rewrite to redirect unless you have no choice.
>  
> On Tue, 25 Oct 2022 at 20:07, Yuji_myst <yu...@yahoo.co.jp.invalid> wrote:
> hello
>  
> Please tell me the specification of .htaccess.
> Place .htaccess in the root directory of the website and set the redirect.
> We are considering setting more than 2000 redirects.
> Is there a limit on the number of redirect settings or .htaccess file size?
>  
> I read the .htaccess documentation, but couldn't find any mention of restrictions.
>  
> Best Regards,
> Yuji
>  
> -- The Wellcome Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.

[users@httpd] Re: [rt5.ietf.org #11631] specification of .htaccess [EXT]

Posted by Duy Khanh <ay...@yandex.com>.
  
  
18:53, 26 tháng 10, 2022, James Smith <js...@sanger.ac.uk>:  

> If you have that many look at RewriteMap
>
> <https://httpd.apache.org/docs/current/rewrite/rewritemap.html>
>
> **From:** Frank Gingras <[thumbs@apache.org](mailto:thumbs@apache.org)>  
>  **Sent:** 26 October 2022 02:42  
>  **To:** [users@httpd.apache.org](mailto:users@httpd.apache.org)  
>  **Subject:** Re: [[users@httpd](mailto:users@httpd)] specification of
> .htaccess [EXT]
>
> This is an extremely bad idea. Do you have access to your config files / the
> root user? If so, edit your vhost, and place your redirects in there
> instead.
>
> Such a large .htaccess file will perform very poorly.
>
> Further, avoid using mod_rewrite to redirect unless you have no choice.
>
> On Tue, 25 Oct 2022 at 20:07, Yuji_myst
> <[yuji_myst@yahoo.co.jp.invalid](mailto:yuji_myst@yahoo.co.jp.invalid)>
> wrote:
>

>> hello

>>

>> Please tell me the specification of .htaccess.

>>

>> Place .htaccess in the root directory of the website and set the redirect.

>>

>> We are considering setting more than 2000 redirects.

>>

>> Is there a limit on the number of redirect settings or .htaccess file size?

>>

>> I read the .htaccess documentation, but couldn't find any mention of
restrictions.

>>

>> Best Regards,

>>

>> Yuji

>
> \-- The Wellcome Sanger Institute is operated by Genome Research Limited, a
> charity registered in England with number 1021457 and a company registered
> in England with number 2742969, whose registered office is 215 Euston Road,
> London, NW1 2BE.

  
  
\--Re  
Sent from Yandex Mail for mobile
\--------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
commands, e-mail: users-help@httpd.apache.org