Q:

Permanent redirect from one domain to another but same host

I had domain name which expired today and I have registered new domain with same name but different extension. New domain is in the same host where was old domain... just from http://example.com become http://example.net
Now I have added in .htaccess this which I took from another question here on SO but when I go to old domain doesn't redirect me. Is this is because they are on the same hosting account?
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteBase /
RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
RewriteRule ^(.*)$ http://example.net [R=301,L]

New domain is working without any problems and is loading correctly if I go directly.

A:

If you don't own example.com, you have no control over where it is hosted now.  Read up on how DNS works https://en.wikipedia.org/wiki/Domain_Name_System

