Hi! im new here. I hope i post at the right thread.. anyway how can i make my subdomain redirect to my category? something like this : http://test.domain.com -> http://domain.com/category/test http://test1.domain.com -> http://domain.com/category/test1 http://test2.domain.com -> http://domain.com/category/test2 Is there a way to set it? RewriteEngine on RewriteCond %{HTTP_HOST} !^domain.com RewriteRule ^(.*)$ http://domain.com/category/$1 Code (markup): Thanks before...
This might work for you: RewriteCond %{HTTP_HOST} ^(www\.)?[^.]+\.domain\.com.*$ RewriteRule (.*) http://domain.com/category/$1 [L] Code (markup):
Thanks for your reply. I will add this to wordpress that have a default .htaccess something like: I had tried to add that code, therefore: But it does not work. I'm sorry, I'm really a newbie here. Need help please... Many thanks...
those are two separate rules, do not mix them up. place the code I gave you before the wordpress module.