Welcome To Snipplr
Everyone's Recent Apache Snippets Tagged apache
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Basic starting point for an Apache VirtualHost that points to a Symfony project being developed on MAMP
0
566
posted 15 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
737
posted 15 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
913
posted 15 years ago by cbrant
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
873
posted 15 years ago by catchamonkey
Rediccionamiento Apache desde una IP determinada y pidiendo una página concreta
0
576
posted 15 years ago by estebant
Redirecciona una petición HTTP de Apache a una URL, salvo los que tenga una IP determinada.
0
524
posted 15 years ago by estebant
ExpiresActive tells the apache2 to use the expires module.
ExpiresDefault specifies the expire date for all mime-types in this directory.
ExpiresByType specifies the expires date for the specified mime-type in this directory.
2
626
posted 16 years ago by CharlyBr
After installing WordPress an .htaccess file with the following code needs to be added to the wp-includes folder.
1
533
posted 16 years ago by m00min
Forward users from your alias domains to your main domain automatically. Nice to have if your site has got one or more aliases. Notice that all the domain aliases have [NC,OR] at the end of the line, while the last alias and_so_on.com just has [NC]....
6
761
posted 16 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force removal of www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
3
828
posted 16 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force users to use www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
5
915
posted 16 years ago by torkil