WordPress Site

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
Richard KortsBusiness Owner / Chief DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineDon't talk to me.Commented:
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.
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
To Jason C. Levine,

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

Thanks
Jason C. LevineDon't talk to me.Commented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
William NettmannPHP Web DeveloperCommented:
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.
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
Great explanation!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.