+ Post New Thread
Results 1 to 5 of 5

Thread: Redirection for one domain to another

  1. #1

    Redirection for one domain to another

    You can use below code to redirect your website's page individually.
    Code:
    Redirect 301 /oldpage.html http://www.domainname.com/newpage.html
    ReRedirect 301 /oldpage.html http://www.domainname.com/newpage.html
    Redirect 301 /oldpage2.html http://www.domainname.com/folder/ direct 301 /oldpage2.html
    If you want to redirect whole website then use below code:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^olddomainname.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.olddomainname.com [NC]
    RewriteRule ^(.*)$ http://newdomainname.com/$1 [L,R=301,NC]
    You can check Website Redirection details easily in this link.

  2. #2
    Senior Member etechsuppor's Avatar
    Join Date
    Jun 2020
    Location
    India
    Posts
    118


    Is this useful / helpfull? Yes | No
    When you redirect a URL, you're simply forwarding it to another address on the same, or different domain. You can set up a redirect that sends visitors to your new domain name when they'll try to access a URL that belonged to your old domain.
    Technical Support - eTechSupport.net ▌24x7 Server Management Blog ▌Live Support Skype : [email protected]

  3. #3
    Junior Member lionel54's Avatar
    Join Date
    Aug 2021
    Posts
    3


    Is this useful / helpfull? Yes | No
    Hello.
    My name is Lionel, I specialize in the creation of wordpress website. I'm 36 years old and I live in Marseille. I'm an expert in the field and I would like to start with coding. In particular with php and Mysql. I hope to find the necessary resources to grow very quickly.

  4. #4


    Is this useful / helpfull? Yes | No
    hm very good bro go enxt

  5. #5
    Senior Member
    Join Date
    Jul 2019
    Location
    USA
    Posts
    226


    Is this useful / helpfull? Yes | No
    Quote Originally Posted by kumkum View Post
    You can use below code to redirect your website's page individually.
    Code:
    Redirect 301 /oldpage.html http://www.domainname.com/newpage.html
    ReRedirect 301 /oldpage.html http://www.domainname.com/newpage.html
    Redirect 301 /oldpage2.html http://www.domainname.com/folder/ direct 301 /oldpage2.html
    If you want to redirect whole website then use below code:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^olddomainname.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.olddomainname.com [NC]
    RewriteRule ^(.*)$ http://newdomainname.com/$1 [L,R=301,NC]
    You can check Website Redirection details easily in this link.
    Helpful redirection code suggested to us.
    bodHOST | Linux VPS Hosting | 24x7 Support
    Web Hosting @$0.99/mo

+ Post New Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam