Hello, I need http://domain.net/board/showthread.php?t=22833 to forward user to http://[B]www.[/B]domain.net/board/showthread.php?t=22833 instead i am getting domain.net?t=22833 how can i fix this? Thankyou!!!
In an .htaccess file you can do this RewriteEngine on Options FollowSymlinks RewriteCond %{http_host} ^ageedesign.com [NC] RewriteRule ^(.*)$ http://www.ageedesign.com/$1 [L,R=301] Code (markup): Basically it checks to see if host is simply domain.com, if it is, it goes to www. instead
so you have only a redirection if the host is domain.com, but no reddirection for ww.domain.com or other subdomains... alternativly you can use this rewrite RewriteEngine on Options FollowSymlinks RewriteCond %{http_host} !^www\.domain\.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] Code (markup): then will be redirectet if the requestet host is not www.domain.com...