Good Day Friends,
I have a problem in htaccess "www" prefix code.
My code is like this
RewriteEngine On
Options +FollowSymlinks
# This is the code for the subdirectory.
# My actual code is placed is subdirectory named "doman"
# This code is working fine
RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteCond %{REQUEST_URI} !^/domain/
RewriteRule (.*) /domain/$1
#When i added this code for automatic www prefix
#my url becomes http://www.domain.com//domain
# i want it to be like www.domain.com
RewriteCond %{http_host} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
|