Tuesday, May 22nd

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Moving site from one folder to the public_html
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Moving site from one folder to the public_html

Moving site from one folder to the public_html 3 years ago #1453

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 1
seem to be asking a lot of questions on this forum, but hey, I guess that is what the forum is designed for right???

I currently set up a site on a server and it resides in a seperate folder as in... sitename/joomla/index.php

The reason why I did it this way way I needed to make sure I did not interupt the working site that is currently in place. Probably would have been OK but me being the cautious type and all....

NOW I want to move the site from the joomla folder into the the public_html location. There are no registered users at the moment so that should make it a little easier.

Can I just move the "templates" folder from the "joomla" folder and put it into the public_html location and it should work fine or are there a some paths I need to edit within the files? Any hints on which ones I need to edit would be helpful too....

Thanks for your help once again...

JL

Re:Moving site from one folder to the public_html 3 years ago #1454

  • RicRaftis
  • OFFLINE
  • Expert Boarder
  • Posts: 146
  • Karma: 5
I'm assuming from your post that the site in the root directory is a Joomla site as well. Moving the template folder, (on first thoughts), should do the trick, providing all your components and modules are identical in the root site.

Most importantly, you will need to edit the confguration.php file so it is pointing to the correct database though if this is what you are seeking to do in shfiting the sites around.

Conversely, if you are just changing templates, the moving of the folder and the changing of the default template in the admin area should do the trick.

Hope I've understood you correctly John..

Cheers,
Now Retired but still interested...
Follow me on Twitter

Re:Moving site from one folder to the public_html 3 years ago #1455

Ric may be right, but I wouldn't have thought just moving the templates folder was going to work - but I can see that it may be possible (anything's possible) with changes to the config file - but I'm not sure about this - a lot of variables like joomla versions etc.

I think you either have to copy the entire site directory to the root - not too onerous if you use a joomlapack back up and kickstart. Or could do manually.

Or you simply redirect your domain to this folder - not sure how your hosting is organised, but I think these are the options for what you want to do.

[If you are using cpanel & shared hosting you may find you aren't "allowed" to just point the domain to any folder - depends on your set up etc.]

I look forward to hearing the solution and other people's ideas - I would not usually have considered separating the directory in this way.
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re:Moving site from one folder to the public_html 3 years ago #1457

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 1
I probably didn't explain it too well....

My client had a site using RVSiteBuilder which I helped set up. I then decided that Joomla was the way to go. SO, I put the application into a different folder and done all the updates, editing, etc there. I just wanted to make sure that I did not interfere with the site they had. Not sure if it would have made a difference if I had of installed the Joomla in the root directory or not.

It probably would have as I have not done anything to the RVSiteBuilder site and the Joomla one is now displayed when clicking going to the URL.

I have just moved all the files from the Joomla folder in the public_html and changed all the paths in the configuration.php file. Also ensured that the paths for all the images were changed as well.

Seemed to work fine. I must stress though that anyone that may also want to attempt this that you create a BACKUP of your files prior to doing anything.

Thanks for the suggestions. I LOVE these forums.

Re:Moving site from one folder to the public_html 3 years ago #1466

  • Sue
  • OFFLINE
  • Junior Boarder
  • Posts: 36
  • Karma: 0
John,

I usually always do my development in a subdirectory. It's no big deal to move it to the root of your site.

If you've got Control Panel access, select the whole installation and make an archive (zip) file (you might want to do the same thing to the original site in the root directory - in case things go pear shaped - if you're totally paranoid, like me, download both zip files and test that especially the "original site" one has got the whole shebang).

Once you're sure your zips are OK, then blow away the root directory stuff and unzip your "subdirectory" site into that space.

Modify the configuration.php to reflect the new path and then don't forget to CHMOD the permissions to 444 to keep it safe. Delete your old "joomla" subdirectory.

Rinse, & don't repeat.

Edited to add: Oops, sorry. I see that you've done it Glad it all worked out for you.

cheers,
Sue
---
Sue

Re:Moving site from one folder to the public_html 3 years ago #1491

  • jengregory
  • OFFLINE
  • Senior Boarder
  • Posts: 61
  • Karma: 2
Good tips in here. I use sub-domains for testing purposes quite often now as clients want their old site to function as normal in the process of building a new one.

In the last few weeks I have been reading up about robots.txt files and found an interesting fact about them - the robots.txt file only works when it is in the root of the directory, so if you're building / using a joomla site in a sub-directory, search engines can go in and crawl every single folder unless you tell them not to. So a little tip - put

Disallow: /subdirectoryname/
(replacing 'subdirectoryname' with the folder name of your subdirectory)

into a robots.txt file (or if you also have joomla in the root, add it to the current robots.txt file that Joomla would have automatically created in the root folder). You might not want google crawling around whilst you're building a site.

I did some robots.txt information searching on alledia.com which is where I read this and a 100 other interesting things about robots.txt files.
Jennifer Gregory
www.standoutwebdesign.com.au
  • Page:
  • 1
Time to create page: 0.59 seconds
You are here: Forum