Does the browser's address bar change to domain.com?
Try
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} test\.example\.com [NC]
RewriteRule ^$ /test.php [QSA,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} test\.example\.com [NC]
RewriteRule ^(.+)$ /test.php?action=viewcategory&articlecategory=$1 [QSA,L]