glennlawre Posted September 5, 2014 Share Posted September 5, 2014 Does anyone have any ideas why my site would not be working with the www prefix? I have copied a site that is working perfect to move to a new domain. I copied all files and the database and uploaded to my new domain and configured it to use the new (copied) db. My site that is working is setup with a www prefix in my "Shop domain name" in SEO & URLs and it works fine. On my new site, when I set my new domain in "Shop domain name" and try to visit my new site I get an "Under Construction" page. This page usually shows with my webhost if I don't have a site setup or dns is not working, but this is not the case here. If I set the site to exclude the www in "Shop domain name" it then works ok if I visit it without www in the url. However if I use www in the url I get the "Under Construction" message again. All settings in both PS and on my host seem to be exactly the same excepts for the "Shop domain name" obviously. Anyone any ideas? My store is PS v1.4.8.2. Link to comment Share on other sites More sharing options...
glennlawre Posted September 7, 2014 Author Share Posted September 7, 2014 Any help on this please? I have followed the instructions from here exactly but my newly copied site will not work with www set in the url. I have even tried to force it from www to non-www by .htaccess with this setting - RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC] But not even this is working. If www is used in the prefix, it goes to the www version of the url and my site does not work. Many thans in advance... Link to comment Share on other sites More sharing options...
glennlawre Posted September 7, 2014 Author Share Posted September 7, 2014 Actually, this looks like it may be a dns issue to me. I have emailed my webhost and will post back if I get a resolution from them. Link to comment Share on other sites More sharing options...
El Patron Posted September 7, 2014 Share Posted September 7, 2014 in .htaccess maybe this will work better for you # Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Link to comment Share on other sites More sharing options...
glennlawre Posted September 8, 2014 Author Share Posted September 8, 2014 Cheers for this El Patron, but we got this sorted now. It was a dns issue, there was no CNAME record created for the www version of my site. There is now and this issue is resolved. A separate issue now with Friendly URLs not working! Many thanks... 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