Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged redirect



« Prev 1 Next »
  1. FAV

    domain.com->www.domain.com Apache Redirect

    This redirect is domain independent.
    Apache 9 views posted 7 years ago by abwaters
  2. FAV

    .htaccess Redirect ROOT to subdirectory

    I found this useful. Works as expected.
    Apache 7 views posted 8 years ago by RainyDayMedia
  3. FAV

    Basic .htaccess 301 redirect

    Redirect from the root of the site to another URL.
    Apache 10 views posted 8 years ago by ToddSmithSalter
  4. FAV

    .htaccess Redirect (301): Non-WWW to WWW

    Apache saved by 1 person 10 views posted 8 years ago by jacksaidwhat
  5. FAV

    Maintenance mode with .htaccess

    Apache 8 views posted 8 years ago by zac
  6. FAV

    Simple .htaccess Mobile Redirect

    Apache saved by 9 people 25 views posted 9 years ago by ohryan
  7. FAV

    HTTP / HTTPS redirection

    Apache 2 views posted 9 years ago by Jacek_FH
  8. FAV

    htaccess mobile redirect

    Apache saved by 3 people 8 views posted 9 years ago by nathansearles
  9. FAV

    .htaccess Mobile Device Redirect

    This rewrite covers most mobile devices (with few false positives). When a mobile device is detected it is redirected to /m/.
    Apache saved by 6 people 10 views posted 9 years ago by ohryan
  10. FAV

    Redirect 301 para forzar el uso de www.

    Para evitar que google indexe contenido duplicado
    Apache 3 views posted 9 years ago by mfigge
  11. FAV

    Redirect 301 para sitios con dos dominios

    Tipico caso de sitio con dos dominios, y paginas con parámetros.
    Apache 3 views posted 9 years ago by mfigge
  12. FAV

    .htaccess redirect www subdomain to second level domain

    Apache saved by 2 people 7 views posted 9 years ago by minipark
  13. FAV

    Redirect all external traffic to a temp page

    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.
    Apache saved by 6 people 14 views posted 9 years ago by BFTrick
  14. FAV

    .htaccess URL Rewrites

    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.
    Apache saved by 4 people 14 views posted 9 years ago by beneberle
  15. FAV

    Redirect Visitors to Directory

    Apache saved by 2 people 7 views posted 9 years ago by blpgirl
  16. FAV

    Redirect Visitors to New Page

    Apache 6 views posted 9 years ago by blpgirl
  17. FAV

    .htaccess redirect url without www prefix

    Apache 6 views posted 9 years ago by vigoncas
  18. FAV

    Alias .htaccess Redirect 301

    Apache 7 views posted 9 years ago by vigoncas
  19. FAV

    Set up a 301 redirect

    Hacer una redireccion permanente
    Apache 4 views posted 10 years ago by jrobinsonc
  20. FAV

    Website Maintenance Redirect

    Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.
    Apache saved by 6 people 10 views posted 10 years ago by dertimbo
  21. FAV

    .htaccess 301 Redirect

    Apache saved by 2 people 5 views posted 10 years ago by chrisdpratt
  22. FAV

    Apache Redirect from *.example.com to example.com

    Apache saved by 4 people 9 views posted 10 years ago by wizard04
  23. FAV

    Redirect 404 error page to any page

    Just insert it into your .htaccess file to redirect all your 404 error pages to any address
    Apache saved by 10 people 10 views posted 10 years ago by caruso_g
  24. FAV

    Rewrite URLs to force WWW

    A more generic and portable snippet
    Apache saved by 8 people 7 views posted 10 years ago by dertimbo
  25. FAV

    Redirect to main domain

    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>.
    Apache saved by 2 people 6 views posted 11 years ago by splotchy
  26. FAV

    htaccess 301 redirect

    Apache saved by 4 people 10 views posted 11 years ago by iTony
« Prev 1 Next »