.htaccess RewriteRules for redirecting base64 strings

April 29th, 2019

A while back for Senior Assassins I needed to create an htaccess rewrite rule for base64 strings.

I already had several for different combinations of letters and numbers but for some reason, the regex for a base64 string wasn’t working for me.

Below is an example of the rule in case it’s of use for anyone:

RewriteRule ^search/([a-zA-Z0-9_=-]+)/?$ search.php?q=$1 [NC,L] # Handle search function

The rule above takes a GET request for


and redirects to



Comments Are Not Yet Implemented.