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.