Wiccle.com in Facebook Wiccle.com in Twitter Wiccle.com in LinkedIn Wiccle.com in Youtube RSS from Wiccle.com Wiccle.com in Atom
 
 
 

Thread: Move Wiccle to a new folder on same server.

Started: June 16, 2010, 01:52 PM  ⋅  Zone: Public Forums  ⋅  Category: Install & Modification  ⋅  Posts: 4  ⋅  Views 929
Started by: dexcode  ⋅  Description: I need to move my installation of wiccle from a subfolder on the server to the root folder.
Post #1
Member: dexcode  ⋅  Date: June 16, 2010, 01:52 PM  ⋅ Subject: "Move Wiccle to a new folder on same server."

Is there anything special I need to do to move the wiccle install I have from a subfolder to the root folder of the server?

What settings do I need to change and where are those settings?

Can I just copy the contents of the subfolder to the root folder and correct some settings or is it more complicated than that?

Cheers

Post #2
Member: Kyle  ⋅  Date: June 16, 2010, 02:41 PM  ⋅ Subject: "Re: Move Wiccle to a new folder on same server."

Hi Dexcode,

If you haven't run the initial Wiccle installer, then its simply a matter of transferring the whole wiccle site to whatever directory you like.

If, on the other hand, you have run the Wiccle installer and the database is up and running then there are two steps. One, transfer the wiccle site files to the root. Two, you will have to change one field in the database - the field is base_url and it is in the w_field_data table.

If for example I had a wiccle site live at :

http://www.example.com/kyle/

but moved it to

http://www.example.com/

I would change base_url from http://www.example.com/kyle/

to http://example.com/

Hope this helps! Cool

Post #3
Member: Markus  ⋅  Date: June 16, 2010, 07:11 PM  ⋅ Subject: "Re: Move Wiccle to a new folder on same server."

You can also change the Base URL under Admin CP > System > Server Settings — recommend doing it first and then moving the files. (Although what Kyle described above is what I also do myself 99% of the time — quick hacks will get you there sooner if you know where to tweak.)

Here are a few additional notes for reference.

---

If you are transfering the site from server to server, you will need to take a database copy in PHPMyAdmin to move it over. This results in a .sql file. You can open it up in a text/code editor, search for the base_url, and change it as necessary. If you edit the field manually, remember that it requres a trailing slash.

You can also change the base_path field (full system path) to make things complete, although it isn't currently in use. (It will become active with future updates.)

--

If you have edited pages and added images or links with TinyMCE (the default WYSIWYG text editor in the system), you should be aware that it appends subfolder paths into the HTML. Therefore, images and links will break if the site is transferred to a new location. There are two easy ways to remedy this.

Run a database query:

UPDATE w_units SET unit_custom_text = replace(unit_custom_text, '="oldfoldername/', '="');

This will remove the folder in the path added to links and images by the editor altogether, making the paths relative to wherever they are. If you have added extra images and smilies to content posted into the modules, also run the following queries (for posts and comments):

UPDATE w_posts SET post_text = replace(post_text, '="oldfoldername/', '="');

UPDATE w_comments SET com_text = replace(com_text, '="oldfoldername/', '="');

Otherwise, if you have a SQL dump file that you're about to import, you can open it up and run a search and replace over it, changing all references to   ="oldfoldername/  into just  ="  across the entire file. That will accomplish the same.

--

If you are using directory-style Smart URLs (under Admin CP > System > Search Engines, off by default), you will also need to change the RewriteBase line in the main .htaccess file.

If your site is directly under the domain (or subdomain), it should have (as is by default):

RewriteBase /

Otherwise, if your installation is in a subfolder, it should have:

RewriteBase /mywiccle

If these are not correct and URL rewriting is on, the server will return a 404 missing page error.

 

Install & Modification

Add to Favorites
Public Forums
Category  ⋅  Deploying iWiccle and Wiccle into unique solutions that match your needs.
 

Public Forums

Add to Favorites
Public Forums
Zone  ⋅ Public forum sections for support and discussions. Available for everyone.
 

Zone Categories

 
Questions? Ask us!
Back to Top