Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » Running WordPress » Installing & running WordPress »

[SOLVED] Migrated blog from /blog to root folder and cannot redirect. Any help?


  #1  
Old Mar 21, 2011, 09:52 AM
Foodie With Family
 
11 posts · Mar 2011
I migrated my blog from the /blog location to the root folder this weekend. Sadly, all my attempts to redirect so that my SEO rankings and links are preserved seem to be going south. I added the following bit of code in the .htaccess folder:

RewriteEngine On
RewriteBase /
rewriterule ^blog(/.*)? $1 [L,R=301]

Let's just say it didn't do re-directs the way I wanted them. It just redirected every internal link in the website (say on post titles or comment links, etc...) go back to the home page in the root folder. All my old /blog links (with the exception of images) just led back to the home page in the root folder as well. ACK! Does anyone have any idea what I've done wrong?

My url:
http://foodiewithfamily.com
  #2  
Old Mar 21, 2011, 10:36 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I am by no means a redirect master and have seen how confusing it can be. Here is one POSSIBLE solution. Replace what you have in your htaccess file with the following.
HTML Code:
Redirect 301 /blog http://foodiewithfamily.com
Again no guarantees but it's at least something to try.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Mar 21, 2011, 10:37 AM
Foodie With Family
 
11 posts · Mar 2011
Hi Larry! Should that go before or after the #BEGIN Wordpress? I feel like my eyeballs are rattling around in my skull thinking about this so much! Thanks for being willing!
  #4  
Old Mar 21, 2011, 11:04 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
That's just a comment line so I don't think it matters. I would put it at the very top just to separate it from the rest and you could put
HTML Code:
# Redirect from blog folder
just before it to tell you what it's for in the future.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Mar 21, 2011, 06:42 PM
Foodie With Family
 
11 posts · Mar 2011
Thank you both, lmilesw and stw. I tried both, but neither solution worked. And hostmonster does have mod_rewrite installed, but for some reason...

Hmm... I wonder if I boogered something else up in the migration. I copied my /blog files to the root folder but nothing doing on the redirects. Very frustrating. I am, admittedly, a novice at this, but I'd like to salvage what I can. And folks? I can't offer much, but I make mean baked goods and canned things (my candied jalapenos are semi-famous, one bit of SEO I'd love to preserve. Pun intended.) I'd be happy to send some goodies to someone who can help me solve it!

And geez, do I sound like my grandma now or what?
  #6  
Old Mar 21, 2011, 08:03 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You caught my attention with the candied jalepenos. Try the following which is almost the same as was mentioned. Just a missing caret (^) before blog.

HTML Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^blog/(.*)$ /$1 [R=301,NC,L]
</IfModule>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Mar 21, 2011, 09:06 PM
Foodie With Family
 
11 posts · Mar 2011
Before or after the #BEFORE, Larry? I'm trying both, but hey... I'm seriously desperate at this point.

Like candied jalapenos, eh? I have that and all sorts of good home preserved goodies!
  #8  
Old Mar 21, 2011, 09:13 PM
Foodie With Family
 
11 posts · Mar 2011
OHMYGOSH. Did that seriously just work, Larry???? It looks like it did, so far! Can I pretty please send you some goodies (candied jalapenos) as a thank you? You're the bestest ever! I'm on twitter,
  #9  
Old Mar 21, 2011, 09:32 PM
Foodie With Family
 
11 posts · Mar 2011
@foodiewithfam or you can direct email me with your mailing addy! I want to send you a thank you!

Bookmarks

Tags
broken internal links, not-a-webmaster, prevent seo disaster, redirection, techno-idiot



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Automatic Blog Redirect Cathy131 Atahualpa 3 Wordpress theme 2 Feb 27, 2011 05:19 PM
"Redirect Loop" Issue When Clicking ANY blog link!!?? River2Horses Atahualpa 3 Wordpress theme 5 Sep 29, 2010 03:47 PM
[SOLVED] Blog Home Page and Blog Archive Not Accepting Specified Menu c12281 Sidebars & Widgets 5 Aug 3, 2010 06:32 PM
[SOLVED] Adding borders to sides of blog with blog centred in middle of page rhymes Page & Category Menu Bars 1 May 16, 2009 12:38 AM
Linking Header to Website Root, Not Blog Root mishutkadesign Header configuration & styling 3 May 4, 2009 01:31 AM


All times are GMT -6. The time now is 07:39 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.