I have transferred my blog to newdomain.nl on the same apache server where olddomain.nl is hosted. In the DNS settings of the hostingprovider I can set a redirect to http://newdomain.nl. This works only for this url. Any page or other reference do not work resulting in a "not found" 404 error. I want to discontinue the hosting of the olddomain and I only see solutions using .htaccess on olddomain.nl .
Will "RewriteRule ^(.*)$ http://www.newdomain.nl/$1 [R=404,L]" on newdomain.nl do the trick? And will there be no risk of a loop? For the latter problem: could adding ?~404 to the new url help in testing to prevent a loop? How to code that?