dorje Posted July 26, 2013 Share Posted July 26, 2013 Hi all I want my domain in the www.abc.com formant not in abc.com < naked domain > I do this by 301 reidirect in .htaccess file but the file itself edits the code and removes the 301 redirect code after 3, 4 or sometimes a week. The code is "RewriteEngine On RewriteCond %{HTTP_HOST} ^kathmanduclothing.com RewriteRule (.*) http://www.kathmanduclothing.com$1 [R=301,L]" So is there any way to make this code default in htaccess as like whenever i generate a new code then it should come along in the htaccess as default Sop version is 1.4.4.1 I just want to get rid of this. Link to comment Share on other sites More sharing options...
vekia Posted July 26, 2013 Share Posted July 26, 2013 you can use www.domain in the preferences > seo & urls as a domain and domain ssl configuraiton then you will be automatically redirected from non-www to www Link to comment Share on other sites More sharing options...
dorje Posted July 26, 2013 Author Share Posted July 26, 2013 Hi vekia i have set shop domain name is www.kathmanduclothing.com but no help. Link to comment Share on other sites More sharing options...
vekia Posted July 26, 2013 Share Posted July 26, 2013 are you sure? take a look: Link to comment Share on other sites More sharing options...
saidecors Posted September 12, 2014 Share Posted September 12, 2014 hi! i couldn't redirect my www. version to non www.version i'd tried with htaccess but everything is in vain. any help is appreciated. my sit url is http://modularkitchen.saidecorschennai.in Link to comment Share on other sites More sharing options...
El Patron Posted September 12, 2014 Share Posted September 12, 2014 hi! i couldn't redirect my www. version to non www.version i'd tried with htaccess but everything is in vain. any help is appreciated. my sit url is http://modularkitchen.saidecorschennai.in subdomains do not use www, hence a redirect will not work. Link to comment Share on other sites More sharing options...
saidecors Posted September 13, 2014 Share Posted September 13, 2014 subdomains do not use www, hence a redirect will not work. thanks for your update but if www. used, then it's showing error. is there any way to sove it? Link to comment Share on other sites More sharing options...
El Patron Posted September 13, 2014 Share Posted September 13, 2014 thanks for your update but if www. used, then it's showing error. is there any way to sove it? do you still have redirect in .htaccess? if so remove it.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now