Welcome To Snipplr


Everyone's Recent Apache Snippets



1 ... 5 6 7 8 9
SESSIONNAME = Name of your session cookie; example.com = Domainname of your site
1 489 posted 15 years ago by HeWo42
This is a replacement for the default PHP settings in Drupal's .htaccess file. Increasing the memory_limit, max_post_size etc. prevents a lot of errors, especially when using image modules.
0 677 posted 15 years ago by zachharkey
Please, be careful with trailing slash rewrite as post requests without a trailing slash will be ignored. Be sure to test if you plan on using that one. Not compatible with Drupal.
0 547 posted 15 years ago by troynt
canonical redirect at .htaccess
0 1682 posted 15 years ago by kossmoss
Avoid penalties for duplicate content. Also see <a href="http://sitening.com/blog/htaccess-redirects-to-a-single-hostname/">How to Stay Safe from Duplicate Content by Using .htaccess and 301 Redirects</a>.
2 677 posted 15 years ago by splotchy
1 539 posted 15 years ago by iTony
Le hotlinking d'image consiste selon wikipédia : "à utiliser l'adresse d'un fichier publié sur un site web, le plus souvent une image, pour l'afficher sur un autre site, sur un blog, dans un forum, etc. En d'autres termes, au lieu d'enregistrer l'...
0 462 posted 15 years ago by sebus
0 515 posted 15 years ago by hdanniel
1 572 posted 15 years ago by endorfin
it needs the module mod_deflate
1 628 posted 15 years ago by iTony
Basic starting point for an Apache VirtualHost that points to a Symfony project being developed on MAMP
0 570 posted 15 years ago by cburyta
Great way to use mod_rewrite with friendly URLs and Form
1 617 posted 15 years ago by luizlopes
remove the www usually located at the beginning of the url : www.url.com -> url.com http://www.url.com/file.html -> http://url.com/file.html http://www.url.com/directory/file.html -> http://url.com/directory/file.html etc...
1 746 posted 15 years ago by bbnnt
1 536 posted 15 years ago by burnsra
This is good to add to folders which are chmod to 777.
1 597 posted 15 years ago by luizlopes
Use Apache's mod_expires to explicitly set the expiration of a file by it's type. This will enable to browser to cache these static assets and greatly increase performance.
1 920 posted 15 years ago by cbrant
In summary, IE7 compatibility support looks as follows: IE=7 Display in IE7 Standards mode; Already supported in the IE8 Beta 1 release IE=EmulateIE7 Display standards DOCTYPEs in IE7 Standards mode; Display quirks DOCTYPEs in Quirks mode...
3 1017 posted 15 years ago by gbot
3 791 posted 15 years ago by johnloy
1 569 posted 15 years ago by bpj1966
0 479 posted 15 years ago by bpj1966
0 523 posted 15 years ago by bpj1966
2 556 posted 15 years ago by bpj1966
Rewrite your urls for domain.co.uk to www.domain.co.uk including full url
3 880 posted 16 years ago by catchamonkey
1 ... 5 6 7 8 9