Redirect to same domain

Author Topic: Redirect to same domain  (Read 954 times)

Offline PaxiTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
Redirect to same domain
« on: 01-26-2015, 17:45:53 »
Hello everybody,

I am in the process of migrating one domain (new website ='A') to another (old website ='B').

The old website ('B') has been there since the 90's and needed a major update. For this reason a new website was set up in WordPress ('A') which has (for now) a random domain name, but will have the same domain name as the old website after the migration. The individual pages will have different URL though.

Since I don't want to lose the google ranking of the individual pages, I was wondering how I can redirect the old URLs to the new ones? 301 redirect?

I would appreciate any advice.

Thank you in advance!
Paxi


Offline wellliving

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 7
  • Posts: 152
  • Karma: 0
    • Well-living-shop
Re: Redirect to same domain
« Reply #1 on: 02-06-2017, 22:26:49 »
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^abc.com$ [OR]
  RewriteCond %{HTTP_HOST} ^http://www.abc.com$
  RewriteRule (.*)$ http://www.abc.com/blog$1 [P]
</IfModule>

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1441 Views
Last post 10-15-2013, 05:14:04
by seooutsourcingindia2012
7 Replies
3000 Views
Last post 03-03-2016, 03:49:33
by Shikha Singh
1 Replies
1847 Views
Last post 11-04-2015, 01:02:21
by RH-Calvin
4 Replies
3824 Views
Last post 02-09-2017, 04:04:27
by fisherjames731
4 Replies
1174 Views
Last post 02-17-2017, 00:46:17
by amitkedia