Dallas Real Estate and Short Sale Blog: November 2010

We Modified Our Website Now We Are Getting 404s

I Modified My Website Now I’m Getting 404s

We recently converted our blogging platform to WordPress. We did a custom template self-hosted version in order to have it match our primary website in basic design and look.  At some point, we will move the entire website onto the WordPress platform but that's down the line and the subject of another blog.

We left the original blog online for a while as we moved some of the older posts onto WordPress. When we were done, we deleted the old blog files. All appeared well.

A few days later we were checking our domain in Google's Webmaster Tools and noted we were getting lots of 404 errors on the old blog posts.  A 404 error tells the world that the "requested page was not found" on the server. Apparently we had developed back-links to the old blog site and Google had indexed many of our blog entries.  We were a bit concerned about all the 404s impacting our ranking on Google and were desperately looking for an answer.

Disclaimer: the rest of this is technical in nature.

We're running an Apache Server and the answer was both easy and elegant.  In the root directory of an Apache Server is a file named, ".htaccess" and this file can be a powerful tool. Our old blog was in the /blog subdirectory and the new blog was in the /wordpress subdirectory.  We wanted any URL calling a file in the /blog subdirectory to be sent to /wordpress/index.php. 

For example:

http://www.thebranchteam.com/blog/archives/2008/09/entry_114.html

Should be redirected to:

http://www.thebranchteam.com/wordpress/

We downloaded the existing .htaccess file to my PC, opened it in notepad, and added the following:

RewriteEngine On
RewriteRule ^blog/.*$ /wordpress/ [R=301]

Basically, the code tells the server to take any requests for files in /blog/, redirect them to /wordpress/, and report it as a 301 (moved permanently) rather than a 404 (file not found)

We saved the file and uploaded it back to our server. Problem solved!

Originally posted at http://www.thebranchteam.com/wordpress/2010/11/28/we-modified-our-website-now-we-are-getting-404s/

 

Tom Branch and Gina Branch, The Branch Team with RE/MAX Dallas Suburbs, service the greater North Dallas suburbs including Dallas, Plano, Allen, McKinney, Frisco, Lewisville, and Carrollton.  While Gina concentrates on traditional listings and buyer/tenant representation, Tom specializes in assisting distressed homeowners to avoid foreclosure.  Tom and Gina have published two books (Achieving Rock Star Status and The Field Guide to Short Sales) and are available for speaking engagements in the greater Dallas - Fort Worth Metroplex. Subscribe to The Branch Team Blog.

Follow Us on Facebook          View Our LinkedIn Profile         

Copyright 2009-2013 - The Branch Team
The Branch Team - Texas Real Estate Broker 547597 | Team Members are Texas Licensed Real Estate Professionals
Tom Branch - National Mortgage Licensing System 341963
  

The Branch Team - Named Top Producers in Dallas by D Magazine

Important Notice: The Branch Team with RE/MAX Dallas Suburbs is not associated with the government, and our service is not approved by the government or your lender. Even if you accept this offer and use our service, your lender may not agree to change your loan. If you stop paying your mortgage, you could lose your home and damage your credit rating.

All information provided is deemed reliable but is not guaranteed and should be independently verified. Properties subject to prior sale or rental.

Protected by Copyscape Web Plagiarism Tool

Comment balloon 36 commentsTom Branch • November 28 2010 12:03PM
We Modified Our Website Now We Are Getting 404s
share
We recently converted our blogging platform to WordPress. We did a custom template self-hosted version in order to have it match our primary website in basic design and look. At some point, we will move the entire website onto the WordPress… more
Garland TX Homes For Sale 2156 Evergreen
share
The Branch Team | Real Estate Broker 0547597 | RE/MAX Dallas Suburbs 3 Bedrooms | 1 Bath | 1236 SF/Tax Garland TX Homes For Sale - Great frame home on treed lot. The eat-in kitchen has gas stove and breakfast bar. Two living areas offer lots of room… more
Garland TX - Homes For Sale - 1302 Pecan Valley
share
The Branch Team | Real Estate Broker 0547597 | RE/MAX Dallas Suburbs 4 Bedrooms | 3. 1 Baths | 2-Car Garage | 3118 SF/Tax Garland TX Homes For Sale - Great floor plan with 2 masters, 2 living areas, and 2 dining areas. Family room with fireplace and… more
Colleyville TX Homes For Sale - 7305 Majestic
share
The Branch Team | Real Estate Broker 0547597 | RE/MAX Dallas Suburbs 4 Bedrooms | 4. 1 Baths | 3-Car Garage | 5329 SF/Appraiser | Pool & Spa Colleyville TX Homes For Sale - Exquisite home for the most discerning buyer. Half acre corner lot… more
New Dairy Queen In Frisco Texas
share
A new Dairy Queen, the Texas Stop Sign, recently opened in Frisco, Texas. The new location is just south of Main on the east side of Preston Road near the heart of old Frisco. I'm not originally from Texas. The Air Force brought me here in 1979 and… more
The Finish Line - Another Short Sale Closing - Springtown TX
share
Another short sale closed! The sellers avoided foreclosure the buyers purchased a nice home at a discount, and the lender did not have the losses involved with a foreclosure. Many people feel that the nation's economy rises and falls with… more
Joe T. Garcia's - A Fort Worth Landmark
share
The chorus to George Strait's hit song titled, " Does Fort Worth Ever Cross Your Mind " played on a local station today and got me thinking about Joe T. Garcia's Gina and I had dropped by the restaurant, located just south of the Fort… more
The Finish Line - Another Short Sale Closing - Garland TX
share
Another short sale closed! The sellers avoided foreclosure the buyers purchased a nice home at a discount, and the lender did not have the losses involved with a foreclosure. Many people feel that the nation's economy… more
Plano TX Homes For Sale - 3512 Bellwood
share
The Branch Team | Real Estate Broker 0547597 | RE/MAX Dallas Suburbs 3 Bedrooms | 2 Baths | 2-Car Garage | 1816 SF/Tax Plano TX Homes For Sale - Nice home located on a cul-de-sac lot with large shade trees. Open single-level floor plan. Wood… more
The Death of the Franchise - Another Perspective
share
Scott Peterson's blog titled, " The Death of the Franchise??? " got me thinking. I suspect all real estate is local even when it comes to this issue. I've been on both sides having owned and operated a small independent… more