Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged htaccess



1 1074 posted 14 years ago by neoandroid
0 1984 posted 14 years ago by neoandroid
Add to .htaccess for seo purposes
0 1174 posted 14 years ago by nielsenrc
1 979 posted 14 years ago by batfan
1 1270 posted 14 years ago by nathansearles
This rewrite covers most mobile devices (with few false positives). When a mobile device is detected it is redirected to /m/.
2 1507 posted 14 years ago by ohryan
0 1020 posted 14 years ago by NiReiC
Adicionhar o código ao arquivo .htaccess do site
0 916 posted 14 years ago by joaobarbosa
A default HTAccess file. Uncomment any lines that you want to use. http://enarion.net/web/htaccess/trailing-slash/
1 1026 posted 14 years ago by BFTrick
Desired effect is\\r\\n\\r\\nhttp://www.somedomain.com/blog/\\r\\nhttp://www.somedomain.com/blog/tag/\\r\\nhttp://www.somedomain.com/blog/page/2/
2 1027 posted 14 years ago by lixonic
0 1021 posted 14 years ago by Orlandoo
Are you as tired as me of the default layout of 404 error pages? Well now you can easily create your own and refer to it like this:
4 1200 posted 14 years ago by Orlandoo
If you've transferred domain names or wish to redirect a specific page or pages without getting penalty from search engines such as Google, use the following code:
2 945 posted 14 years ago by Orlandoo
If for some reason you would want to deny everyone or allow only a specific group of IP addresses to access your website, add the following code to your .htaccess file:
3 1174 posted 14 years ago by Orlandoo
It's possible to block all unwanted user agents that might be potentially harmful or perhaps just to keep the server load as low as possible.
1 1029 posted 14 years ago by Orlandoo
Tired of people using your bandwidth by putting the images hosted on your server on their website? Add the following code at the bottom of your .htaccess file to prevent hotlinking.
4 1185 posted 14 years ago by Orlandoo
This code redirects all external traffic (all traffic not belonging to a particular ip) to a temp page. This is useful for performing site maintenance.
2 1233 posted 15 years ago by BFTrick
Make file not found redirect to new host.
2 1242 posted 15 years ago by pntruongphuc