TransWikia.com

I have problem with my domain on EC2

Magento Asked by Ajay Patel on December 28, 2021

When I browse my domain name with “www” it works fine. But without “www” it return error Page not found.

Currently my server is on EC2. I need expert advice.

2 Answers

yes I agree with the above the given answer and alternatively your domain is mapped , without www. , you can check in the configuration and change as your requirement

Answered by jayachandran m on December 28, 2021

All you need is to add the following code to your root .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Answered by Arunendra on December 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP