--- .htaccess 2020-09-24 22:26:20.335000000 +0000 +++ .htaccess.target 2020-09-24 22:26:02.403000000 +0000 @@ -73,6 +73,28 @@ # even when running as CGI or FastCGI. RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + # To redirect all users to access the site WITH the 'www.' prefix, + RewriteCond %{HTTP_HOST} . + RewriteCond %{HTTP_HOST} !^www\. [NC] + RewriteRule ^ http%{ENV:protossl}://www.criteriacorp.com/%{REQUEST_URI} [L,R=301] + + # Free Trial page rewrites + RewriteRule ^free_trial_(.+)\.php$ /free-trial?p=$1 [R=301,NC,L,QSA] + + RewriteCond %{QUERY_STRING} (^|&)p=insight($|&) + RewriteRule ^free-trial$ /hireselect/insight [R=301,NC,L,QSD] + + RewriteRule ^hireselect/reports/index/(.+)$ https://results.criteriacorp.com/api/score_reports/$1 [R=301,L] + RewriteRule ^hireselect/reports/candidate_summary/(.+)$ https://results.criteriacorp.com/api/candidate_summary/$1 [R=301,L] + RewriteRule ^hireselect/partners$ https://hireselect.criteriacorp.com/partners [R=301,L] + RewriteRule ^hireselect/partners/$ https://hireselect.criteriacorp.com/partners [R=301,L] + RewriteRule ^hireselect/logon$ https://hireselect.criteriacorp.com [R=301,L] + RewriteRule ^hireselect/logon/$ https://hireselect.criteriacorp.com [R=301,L] + + RewriteCond %{REQUEST_URI} !^/files/docs/files/.*$ + RewriteCond %{REQUEST_URI} ^/files/(.*\.pdf)$ + RewriteRule ^ files/docs/files/%1 [L] + # Block access to "hidden" directories whose names begin with a period. This # includes directories used by version control systems such as Subversion or # Git to store control files. Files whose names begin with a period, as well