Solved

WordPress Site

Posted on 2014-10-25
5
134 Views
Last Modified: 2014-10-27
Hello,

We have a case where I have inherited a WordPress site to replace the current (older) site.

The WordPress development was all done at www.website.com/new-site. In fact it is at www.rain1.com/new-site.

We are almost ready to go live. I am thinking of a simple way to do that would be to just replace the old index.htm (or php) with a redirect to www.website.com/new-site.

Are there any downsides to this? Everything in the Wordpress (the permalinks, etc.) point to the new-site directory.

Thanks
0
Comment
Question by:Richard Korts
  • 2
  • 2
5 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40404438
The biggest downside is the new site will be at domain.com/newsite instead of just domain.com.  Makes everything just a little bit harder to do.
0
 

Author Comment

by:Richard Korts
ID: 40405042
To Jason C. Levine,

When you say "Makes everything just a little bit harder to do", can you elaborate?

Thanks
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 40405701
Sure.

The biggest problem with what you are doing by placing the production site in a subdirectory and using a redirect to get people to it is that you now have two layers of redirects (the main one, and the WordPress one) that has to get dealt with on every page load.  This isn't going to slow you down but it does make things more complicated than they need to be.  If you ever wanted to add another layer of redirects to this (say for a Custom Post Type), it will be slightly more difficult to test and implement.  You will also need to be extra careful with plugins and themes and make sure they aren't doing anything stupid with PHP calls and assuming they are just below the site root.  This shouldn't be a problem but you never know when a plugin author will do something

Second, unless you are putting a very complicated redirect in place, the users will see:

www.rain1.com/new-site/something-something/

in their browser.  There isn't anything wrong with this but it isn't the most professional appearance in the world and also has a small SEO ramification in that "new" and "site" are going to become ranking keywords in combination with your normal page slugs and thus will leech some traffic from you (your pages will come up lower than similarly named pages without "new" or "site" in the search).  You probably don't want to happen.
0
 
LVL 12

Expert Comment

by:William Nettmann
ID: 40405853
I use "Safe Search and Replace" to quickly and easily change all the permalinks in the database when I take a dev site live - just change all "http://www.website.com/new-site" to "http://www.website.com". It takes less than a minute, PLUS the time it takes to make sure you have a backup before you do it.

See https://interconnectit.com/products/search-and-replace-for-wordpress-databases/. It's a free download.

I have no connection to interconnect/it.
0
 

Author Closing Comment

by:Richard Korts
ID: 40406708
Great explanation!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now