Welcome To Snipplr


Everyone's Recent Snippets Tagged redirect



If your page has already sent headers to the browser you cant redirect with headers('Location:' . $url); But you can use the following:
0 1164 posted 14 years ago by prwhitehead
0 1621 posted 14 years ago by zac
0 1136 posted 15 years ago by nosmk
0 1373 posted 15 years ago by nosmk
Though an old post, this is my solution that's been pieced together from various comments on the article linked above.
1 2162 posted 15 years ago by beneberle
3 2841 posted 15 years ago by ohryan
0 1132 posted 15 years ago by graphical_force
Add this in the functions.php file, in your Wordpress theme.
0 1940 posted 15 years ago by ddavidd
0 1493 posted 15 years ago by jaredyeo
A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.
0 1339 posted 15 years ago by baires
0 1131 posted 15 years ago by Jacek_FH
1 1661 posted 15 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 1937 posted 15 years ago by ohryan
Para evitar que google indexe contenido duplicado
0 1448 posted 15 years ago by mfigge
Tipico caso de sitio con dos dominios, y paginas con parámetros.
0 1290 posted 15 years ago by mfigge
0 1416 posted 15 years ago by sandrews_06
0 3609 posted 15 years ago by magicrebirth
Can be used as default.htm page to redirect to the desired page
0 1268 posted 15 years ago by fnx
This code wil 301 redirect non-www URLs to the www URL
0 1179 posted 15 years ago by r4b87
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 1529 posted 15 years ago by BFTrick
Hacer una redireccion permanente
2 1563 posted 15 years ago by jrobinsonc
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 1544 posted 15 years ago by beneberle
on node/add/save redirect your to a url of your choice in Drupal 6 in your own custom module. (in this my module name is qctpmm, it's simply the content type of page and it's redirecting to user.)
0 1394 posted 15 years ago by redhatmatt
1 1461 posted 15 years ago by blpgirl
0 1163 posted 15 years ago by blpgirl