Welcome To Snipplr
Everyone's Recent Apache Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1168
posted 16 years ago by troynt
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
1464
posted 16 years ago by splotchy
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
945
posted 16 years ago by sebus
Basic starting point for an Apache VirtualHost that points to a Symfony project being developed on MAMP
0
1078
posted 17 years ago by cburyta
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
1441
posted 17 years ago by bbnnt
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
1743
posted 17 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
2807
posted 17 years ago by gbot
Apache
301 Rewrite domain.co.uk to www.domain.co.uk like the search engine friendly developer you are!
Rewrite your urls for domain.co.uk to www.domain.co.uk including full url
3
1427
posted 17 years ago by catchamonkey
Rediccionamiento Apache desde una IP determinada y pidiendo una página concreta
0
1097
posted 17 years ago by estebant
Redirecciona una petición HTTP de Apache a una URL, salvo los que tenga una IP determinada.
0
1107
posted 17 years ago by estebant