# CPPC Field customer links: /r/<code> and /r/<code>/<n> go to index.php.
Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^([A-Za-z0-9]{12})/?$ index.php?c=$1 [L,QSA]
    RewriteRule ^([A-Za-z0-9]{12})/([0-9]+)/?$ index.php?c=$1&n=$2 [L,QSA]
</IfModule>

<IfModule mod_headers.c>
    Header always set X-Robots-Tag "noindex, nofollow"
</IfModule>
