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.