RewriteEngine On
This is fine. Without this the rest wouldn’t work.
RewriteBase /
Everybody and their aunt puts this in the their .htaccess while in 99 out of 100 cases it’s not needed at all. The only time I recall I’ve ever needed it is on a host with mass virtual hosting, but I don’t think many hosts in the wild use this.
Most likely you can remove this without any consequences.
RewriteCond %{HTTP_HOST} ^www.rsteams.com [NC]
RewriteRule ^(.*)$ http://rsteams.com/$1 [L,R=301]
Other than forgetting to escape the dots in the RewriteCond (i.e. it should be www\.rsteams\.com) this is okay. Slightly better would be
RewriteCond %{HTTP_HOST} ^www\\.rsteams\\.com [NC]
RewriteRule .? http://rsteams.com%{REQUEST_URI} [L,R=301]
because it doesn’t introduce a new variable, but the difference in performance is negligible.
RewriteCond %{REQUEST_URI} act/(.*)/
This line serves no purpose whatsoever, since this intent is already conveyed in the next line. Get rid of this line.
RewriteRule ^act/(.*)/$ http://rsteams.com/index.php?act=$2
Remove the trailing / at the end (as per your spec, you wanted to match /act/test – no trailing slash there), and replace (.*) with the characters you actually want to match. Also, you should just put index.php there, not the complete URL – as that might trip Apache into a 302 redirect instead of a just a rewrite. Also, you’re referencing $1, not $2 (since it’s the first atom – the first match within parentheses). There is no $2 (or above) in this RewriteRule.
For example, to match digits and letters, it’d be:
RewriteRule ^act/([a-z0-9]+)$ index.php?act=$1
AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /home/*CENSORED*/domains/rsteams.com/.htpasswd/public_html/.htpasswd
AuthName "Administrators' Area"
require valid-user
This is fine
<FilesMatch "\\.php$">
AddHandler x-httpd-php53 .php
</FilesMatch>
Not a fan of this setup but as this is completely out of your hands: fine as is.
All together now:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\\.rsteams\\.com [NC]
RewriteRule .? http://rsteams.com%{REQUEST_URI} [L,R=301]
RewriteRule ^act/([a-z0-9]+)$ index.php?act=$1
AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /home/*CENSORED*/domains/rsteams.com/.htpasswd/public_html/.htpasswd
AuthName "Administrators' Area"
require valid-user
<FilesMatch "\\.php$">
AddHandler x-httpd-php53 .php
</FilesMatch>