: Cannot find index for non www The domain points to an A-Record name server, and as of now the name servers are defaulted to registrar (GoDaddy). I went into /var/www directory and edited index.html
The domain points to an A-Record name server, and as of now the name servers are defaulted to registrar (GoDaddy). I went into /var/www directory and edited index.html to <meta http-equiv="refresh" content="0; url=http://siteB.com/" />, and now only example.com redirects to site B. non-www still points to site A. How can I have both non-www and www point to site B? Or better yet, how do I know where index.html for non-www is?
I'm no Apache wiz, but I have webmin with Apache Webserver.
More posts by @Samaraweera270
1 Comments
Sorted by latest first Latest Oldest Best
I wouldn't recommend using HTML meta tags to manage redirects. Go into your root directory, find the .htaccess file and add this to the top.
# This allows you to redirect your entire website to any other domain
Redirect 301 / siteB.com/
You may have to edit your settings to view that file because most programs hide the .htaccess file by default. This will redirect all pages to that site. If you have pages that exist in A but not B, you are going to get 404 errors on those redirects.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.