Welcome To Snipplr
Everyone's Recent Apache Snippets Tagged redirect
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
This rewrite covers most mobile devices (with few false positives). When a mobile device is detected it is redirected to /m/.
2
782
posted 13 years ago by ohryan
Tipico caso de sitio con dos dominios, y paginas con parámetros.
0
550
posted 13 years ago by mfigge
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
681
posted 13 years ago by BFTrick
This is good for ensuring your domain is always either accessed with or without the www, which is important for SEO. It is also good if you have multiple domains that should resolve to the same site, and can redirect all requests to the main domain.
2
596
posted 13 years ago by beneberle
Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.
3
581
posted 14 years ago by dertimbo
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2
619
posted 14 years ago by caruso_g
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
636
posted 15 years ago by splotchy
« Prev 1 Next »