I have installed 301 redirection for the entire site, to redirect pages without "www" to pages with www. My code in htaccess: RewriteEngine On RewriteCond %{HTTP_HOST} ^domain.com RewriteRule (.*) http://www.domain.com/$1 [R=301,L] But I need that when user visit the page domain.com/1.php and domian.com/2.php user does not redirect to www.domain.com/1.php and www.domian.com/2.php respectively, i.e. is need to create an exception for these pages. How to realize this is? I very much look forward to your assistance. Thank you.
use this RewriteCond %{HTTP_HOST} ^www. yourdomain \.com [NC] RewriteRule (.*) http:// yourdomain .com/$1 [R=301,L,NC] remove the space between http:// and www and yourdomain and .com because i'm not allowed to posting it without space