Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

When Using Www Server Not Found, But When Using Non-Www It Works Fine Rate Topic   - - - - -

 
  • sddev
  • Newbie
  • Trial users
  • Join Date: 05-Dec 18
  • 2 posts

Posted 05 December 2018 - 01:25 PM #1

Hello,
Im having an issue with the website, whenever I use non-www it redirects and works fine, but when using www it doesnt redirect and the browser says server not found..
ex:
https://example.com- works good
https://www.example.com- doesnt work

I tried editing config.local.php:

$config['http_host'] = 'www.example.com';
$config['http_path'] = '';

$config['https_host'] = 'www.example.com';
$config['https_path'] = '';

but still it doesnt work

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18473 posts

Posted 06 December 2018 - 07:09 AM #2

Did you try to set up www domain on the Administration -> Stores page?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11001 posts

Posted 06 December 2018 - 07:13 PM #3

Can you "ping" the www domain?

If not then you have a DNS issue.  If so, you can always use the non-www domain in cs-cart (assuming you cleared the cache after changing in config.local.php) and provide a redirect in your .htaccess file.  But you should be able to run your site as either www subdomain or not.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 357 posts

Posted 06 December 2018 - 08:01 PM #4

Check Nginx or apache config, your config not listen www

 
  • sddev
  • Newbie
  • Trial users
  • Join Date: 05-Dec 18
  • 2 posts

Posted 08 December 2018 - 06:27 AM #5

Can you "ping" the www domain?

If not then you have a DNS issue.  If so, you can always use the non-www domain in cs-cart (assuming you cleared the cache after changing in config.local.php) and provide a redirect in your .htaccess file.  But you should be able to run your site as either www subdomain or not.

Thanks, it was exactly a DNS issue!