Hi , I need to redirect f.domain.com to domain.com/f/ ( Just "f" sub-domain ) ( with .htaccess ) How I can do this ? Thanks for your help . Have a great day
RewriteEngine On RewriteCond %{HTTP_HOST} ^f\.domain\.com RewriteRule ^(.*)$ /f/$1 [L] Hope this will help.
You could try: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.yourdomain\.com$ [NC] RewriteRule (.*) /$1 [L] Code (markup): Replace yourdomain and .com with your domain details, but keep the slashes. BMR777