if you want to change your domain name without affecting SEO Ranking in search engines than you should think about 301-page redirect, with 301 redirect you can move your web application to new domain freely.
we can use different methods for setting 301 redirects from old domain to new domain but I am gonna use .htaccess. this method is most preferred, effective and easy.
create the .htaccess file in your old website root folder then put below lines in the .htaccess file.
RewriteEngine on RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=30
Here, this one redirects everything after the domain name on the URL to the exact same copy on the new domain URL., for example, arjun.net.in/drag-drop-file-upload-dropzone-js-codeigniter/ will redirect to arjunphp.com/drag-drop-file-upload-dropzone-js-codeigniter/.
if you remove
$1 , all pages redirect to home page Ex:
arjunphp.com. this will effect search engine rankings.