• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for redirects

redirects

301, 302, 303, and 307 Redirects

Last updated on January 25, 2019 by Sal Ferrarello

A quick table of the differences in 301, 302, 303, and 307 Redirects.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming Tagged With: redirects, website

htaccess Redirect Based on URL Parameter

Last updated on January 21, 2019 by Sal Ferrarello

On a project I needed to redirect a URL based on the presence or absence of a URL parameter. This is the htaccess rule I added.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: apache, redirects

Curl Get Redirect

Last updated on September 25, 2018 by Sal Ferrarello

When creating 301 redirects, I often want to check multiple URLs quickly from the command line (to avoid the manual clicking in the browser and browser caching of results). I’ve written this script to speed up my process.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: command line, curl, redirects

QR Code Best Practices

Last updated on September 19, 2016 by Sal Ferrarello

As a web developer, this article is going to focus on the use of a QR code (Quick Response Code) to point to a website URL. The first step in properly implementing your QR code, which points to a website URL, is to ask yourself, “Does this need a QR code?” Hint: the answer is […]

Filed Under: Dev Tips Tagged With: QR, redirects

htaccess Redirect with Hashtag

Last updated on April 23, 2014 by Sal Ferrarello

I had to setup a redirect the other day with a hashtag. Whenever a visitor hit a specific URL, I wanted to redirect them to another URL but I also wanted to include a hashtag to indicate where they came from when tracking the information in Google Analytics. It appears the secret is the NE […]

Filed Under: Computing, Programming Tagged With: redirects

Chrome Clear Redirect Cache

Last updated on September 24, 2016 by Sal Ferrarello

Chrome Caches Redirects Google Chrome caching redirects, is a known behavior and not one that is planned to change. This is a logical decision, unfortunately the lack of any obvious mechanism to clear these redirects is frustrating at times. There are generally two situations where this occurs. When the Website Returns a HTTP Status Code […]

Filed Under: Computing, Dev Tips Tagged With: redirects

Google Indexing 301 Redirect

Last updated on March 20, 2014 by Sal Ferrarello

While SEO is not my focus of expertise, it is an interesting field which impacts the work I do. I was surprised when fellow developer Dustyn Doyle pointed out to me that Google was indexing 301 redirects.  Based on my research, I couldn’t find any of these 301 redirect links coming up in general searches; […]

Filed Under: Computing Tagged With: redirects, seo, website

Testing Redirects

Last updated on January 28, 2014 by Sal Ferrarello

Testing redirects can be a nightmare since the web browsers aggressively cache redirects. Use incognito mode in Chrome to make it easy to clear cached redirects by closing the Incognito window. Even Better Update Testing redirects from the command line works even better. curl -I http://www.example.com/ will return the headers for the request including the […]

Filed Under: Dev Tips Tagged With: redirects

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in