cooletips.de— This is a great page for any website owner/creator. It asks a few questions, and then will generate a nice clean .htaccess file for you.
May 25, 2006View in Crawl 4
Well, Apache Foundation really recommends you to NOT use .htaccess files, but to set the settings in the main apache configuration files, which will speed things up somewhat.Of course you can just copy the settings this program generates for you into a statement in the main apache config...
There's a few problems though:- ErrorDocument requires two parameters, code and URL. If you omit that, it still generates the "ErrorDocument xxx" token, which would result in an internal server error if you attempted to access your site.- Same goes for the user-agent rewrite rules. If your browser is one of those unfilled items in the generator, you will be redirected unconditionally to the index.- Allow/deny, again if you omit some information, it'll throw an ISE. It needs an IP address or collection of in order to make sense to Apache.This generator isn't a bad start, but the author should have done some input validation and generated the rules from there. If the end-user omitted a few items here and there, it can easily throw the casual user for a loop. Overall is this a bad idea? No, but it needs a bit of work before I'd recommend using it.If you do get a random internal server error (550), check your error_log, which is usually somewhere under /var/log/ for your site. There's a good chance you omitted a field and the generator naively processed it.As for the recommendation about putting the configuration in the main Apache configuration in httpd.conf, yes that's generally the way to go. Apache recommends this setup due to performance. By default, with a request, for each directory that the AllowOverride directive is set, Apache must recursively check and run any .htaccess files prior to running the .htaccess in the current directory of the page request. This can result in needless overhead when processing a request. For that reason, it's recommended users make the configuration in the main Apache config file if they have access.
Closed AccountMay 25, 2006
if so hgreat can it genreate mi panmts bakc on if u slip s**this down!!!
arbinshireMay 25, 2006
@marco - Put. The. Crack. Pipe. Down.
Closed AccountMay 25, 2006
Well, Apache Foundation really recommends you to NOT use .htaccess files, but to set the settings in the main apache configuration files, which will speed things up somewhat.Of course you can just copy the settings this program generates for you into a statement in the main apache config...
wired4uMay 25, 2006
this is great +digg
spinesplitterMay 25, 2006
onion route to it...
greyfadeMay 25, 2006
haha, Norton AntiVirus wouldn't let me visit this page b/c it has '/.ht' in the URI. :D
tsammonsMay 26, 2006
There's a few problems though:- ErrorDocument requires two parameters, code and URL. If you omit that, it still generates the "ErrorDocument xxx" token, which would result in an internal server error if you attempted to access your site.- Same goes for the user-agent rewrite rules. If your browser is one of those unfilled items in the generator, you will be redirected unconditionally to the index.- Allow/deny, again if you omit some information, it'll throw an ISE. It needs an IP address or collection of in order to make sense to Apache.This generator isn't a bad start, but the author should have done some input validation and generated the rules from there. If the end-user omitted a few items here and there, it can easily throw the casual user for a loop. Overall is this a bad idea? No, but it needs a bit of work before I'd recommend using it.If you do get a random internal server error (550), check your error_log, which is usually somewhere under /var/log/ for your site. There's a good chance you omitted a field and the generator naively processed it.As for the recommendation about putting the configuration in the main Apache configuration in httpd.conf, yes that's generally the way to go. Apache recommends this setup due to performance. By default, with a request, for each directory that the AllowOverride directive is set, Apache must recursively check and run any .htaccess files prior to running the .htaccess in the current directory of the page request. This can result in needless overhead when processing a request. For that reason, it's recommended users make the configuration in the main Apache config file if they have access.
studioratsMay 26, 2006
sweet.
crossersJul 19, 2008
very interesting and useful for people who looks information how get better own site!<a class="user" href="http://www.sitemapwriter.com">http://www.sitemapwriter.com</a><a class="user" href="http://www.rsschanelwriter.com">http://www.rsschanelwriter.com</a><a class="user" href="http://www.shpe-sac.org">http://www.shpe-sac.org</a><a class="user" href="http://www.ocflex.com/">http://www.ocflex.com/</a> <a class="user" href="http://www.trgovinca.org">http://www.trgovinca.org</a><a class="user" href="http://www.chasr.org/">http://www.chasr.org/</a>
masskurecMar 3, 2009
nice generator<a class="user" href="http://xptweak.net">http://xptweak.net</a>
vabeachdgAug 31, 2011
Great post. Keep up the good work
Visit: http://cpanel-support.com