How do you move an existing magento installation to another directory?

How do you move an existing "community" (free) magento installation from its existing directory to another directory on the site?

What is step-by-step instructions to reconnect EVERYTHING where everything works as the original installation but in the new directory?
LVL 22
NerdsOfTechTechnology ScientistAsked:
Who is Participating?
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.

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
miked2004Commented:
Here are the steps:
Assuming you are moving from /public_html to /public_html/magento.

1. Move all file into "public_html/magento/"
2. Edit your .htaccess file. See the code below. You will need to uncomment the RewriteBase and set it to your directory.


This works for moving Magento root around in the current webroot. If you were moving it to a different Home directory on your server that would be a little more involved.
############################################
## you can put here your magento root folder
## path relative to web root

    RewriteBase /magento/

############################################

Open in new window

0
miked2004Commented:
P.S. clear /var/cache/ and /var/session/
0
NerdsOfTechTechnology ScientistAuthor Commented:
I must admit, this platform requires SSH methods in so many cases.

Thanks for both methods experts.
0
tbsgadiCommented:
Glad to help!
0
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
E-Commerce

From novice to tech pro — start learning today.