How to redirect old domain to new domain ?

Step 1:  Create/Edit a file .htaccess in the documbent root (public_html / www folder)
of your old domain hosting account and put the code below inside .htaccess file :



#-------------------------------------------------------
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) https://your-new-domain.com/$1 [R=301,L]
#-------------------------------------------------------

Step 2: Replace your new domain name where you see : https://your-new-domain.com in above code.

Step 3: Save & upload file into your old hosting server and you done !

Now your old domain name reffer visitors to your new domain name.

Ha estat útil la resposta?

 Imprimeix aquest Article

Llegir també

How to force all web traffic to use HTTPS ?

// // SSL Certificate Properly Installed & Working Require, To Use It.If you've no SSL...

How to start own Internet radio station?

Internet Radio HostingStart your very own radio station online - [VIEW PLANS] Effectively make...

How to redirect domain with www ?

Step 1:  Create/Edit a file .htaccess in the documbent root (public_html / www folder)of your...

How to redirect old URL to new URL ?

Step 1:  Create/Edit a file .htaccess in the documbent root (public_html / www folder)of your...

HOW TO INCREASE FILE UPLOAD SIZE IN ZPANEL / SENTORA

Increasing Max Upload Size in ZPanel / SENTORA / Linux VPS / CentOs 6 ZPanel / Sentora server...