Mobile app version of vmapp.org
Login or Join
Samaraweera270

: 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

@Samaraweera270

Posted in: #Apache #NoWww #Redirects #Webmin #Webserver

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Marchetta884

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme