| | #1 |
| Active Warrior War Room Member Join Date: 2011 Location: Donegal, Ireland
Posts: 82
Thanks: 19
Thanked 8 Times in 8 Posts
|
Hi, I am currently working on a new site.... "localseoireland.ie" and I want to redirect all traffic (and link juice) from the old site "localonlinemarketingsolutions.com". I'm able to do a complete site redirect using the .htaccess file but I need to do specific redirects for some of the inner pages that I have built backlinks to. Both sites are wordpress, the url structure and content is completely different. Can anyone help...I'm showing my ignorance here but I've wasted too much time on this already and I just have to bite the bullet and ask for help. Cheers |
| | |
| |
| | #2 |
| Warrior Member Join Date: 2012 Location: Crypto World
Posts: 28
Thanks: 2
Thanked 2 Times in 2 Posts
|
You can use the redirect command for this. Here is the syntax which you can try putting in .htaccess file. You must use the full URL: Code: redirect oldURL newURL |
| |
| | #3 |
| Advanced Warrior War Room Member Join Date: 2006 Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
|
If you want to preserve link juice, make sure you use a 301 redirect... Code: redirect 301 oldURL newURL |
| | |
| |
| The Following 2 Users Say Thank You to Brandon Tanner For This Useful Post: |
| | #4 |
| Active Warrior War Room Member Join Date: 2011 Location: Donegal, Ireland
Posts: 82
Thanks: 19
Thanked 8 Times in 8 Posts
|
it's that simple? so I just repeat that code for each url i want to redirect all in the main .htaccess file?
|
| | |
| |
| | #5 | |
| Advanced Warrior War Room Member Join Date: 2006 Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
|
For example... Code: redirect 301 http://www.oldsite.com/pageA.html http://www.newsite.com/pageA.html redirect 301 http://www.oldsite.com/pageB.html http://www.newsite.com/pageB.html | |
| | ||
| |
| The Following User Says Thank You to Brandon Tanner For This Useful Post: |
| | #6 |
| Active Warrior War Room Member Join Date: 2011 Location: Donegal, Ireland
Posts: 82
Thanks: 19
Thanked 8 Times in 8 Posts
|
i can't believe I've been banging my head off a wall all morning and it's that simple. always guilty of over-thinking things when there's no need! thanks mate much appreciated. |
| | |
| |
| | #7 | |
| Warrior Member Join Date: 2012 Location: Crypto World
Posts: 28
Thanks: 2
Thanked 2 Times in 2 Posts
|
![]() When in trouble, Google is our friend! A simple search like this is enough: Code: .htaccess redirect url or redirect urls using .htaccess | |
| |
| | #8 |
| Active Warrior War Room Member Join Date: 2011 Location: Donegal, Ireland
Posts: 82
Thanks: 19
Thanked 8 Times in 8 Posts
|
yeah nice one mate never thought of that...............:rolleyes:
|
| | |
| |
| | #9 | |
| Boost your Site in Days Join Date: 2010 Location: www.BestLinkWheel.com
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
|
here is code for .htaccess:
| |
| | ||
| |
| | #10 |
| Active Warrior War Room Member Join Date: 2011 Location: Donegal, Ireland
Posts: 82
Thanks: 19
Thanked 8 Times in 8 Posts
|
ok so i've finally had a bit of progress with this bloody redirect malarkey.... i've been able to redirect some specific inner pages on my old site but the redirect for the main home page is still not working. here's the code from my .htaccess file.... redirect 301 LOCAL ONLINE MARKETING - for Small to Medium Business Owners Local SEO Ireland redirect 301 /services/search-engine-optimisation SEO Ireland « Local SEO Ireland redirect 301 /services/local-search-marketing-2 Google Places « Local SEO Ireland redirect 301 /services/website Website Design « Local SEO Ireland redirect 301 /blog/what-is-seo-in-plain-english Local SEO Ireland redirect 301 /blog/what-is-seo-in-plain-english Local SEO Ireland All the redirects are working apart from the highlighted one. can someone please tell me what i'm doing wrong. i know its probably something really stupid but any help is much appreciated. cheers. |
| | |
| |
| | #11 |
| Active Warrior War Room Member Join Date: 2011 Location: Donegal, Ireland
Posts: 82
Thanks: 19
Thanked 8 Times in 8 Posts
|
ok so i've finally had a bit of progress with this bloody redirect malarkey.... i've been able to redirect some specific inner pages on my old site but the redirect for the main home page is still not working. here's the code from my .htaccess file.... redirect 301 http://www .localonlinemarketingsolutions.com/ http://www .localseoireland.ie redirect 301 /services/search-engine-optimisation http://www .localseoireland.ie/services/seo-ireland redirect 301 /services/local-search-marketing-2 http://www .localseoireland.ie/services/google-places redirect 301 /services/website http://www .localseoireland.ie/services/web-design-donegal redirect 301 /blog/what-is-seo-in-plain-english http://www .localseoireland.ie/ redirect 301 /blog/what-is-seo-in-plain-english http://www .localseoireland.ie/ All the redirects are working apart from the highlighted one. can someone please tell me what i'm doing wrong. i know its probably something really stupid but any help is much appreciated. cheers. |
| Last edited on 21st Feb 2012 at 04:27 PM. Reason: typo errors | |
| |
|
| Bookmarks |
| Tags |
| .htaccess, 301, page, pleasespecific, redirect, redirects |
| |