By sputnicker
I’m trying to redirect the site “www.spotbot.in” to site “spotbot.in”, but I’m not getting it performs. The site opens, but no redirect is done.
Here are my dns zone file and my .htacess file
$TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.Spotbot.in. ( 1386026866 ; last update: 2013-12-02 23:27:46 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 162.243.120.128 imagens CNAME go.domains.live.com. email CNAME go.domains.live.com. drive CNAME go.domains.live.com. calendario CNAME go.domains.live.com. www CNAME spotbot.in.
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.spotbot.in$ [NC] RewriteRule ^(.*)$ http://spotbot.in/$1 [R=301,L]
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
In your Apache config file, what do you have listed for the <code>ServerName</code> and <code>ServerAlias</code> directives?
I got it. It was an BOM on the .htacess file. Removed the BOM and it worked like a charm. <br>Thank you guys!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.