Jump to content

Moving PS 1.4.7.3 from Folder in a subdomain to main domain?


Recommended Posts

Hi there

 

The process is pretty easy, once you know what and how to do.

 

1) First of all, move all files to the root, from the subfolder. Best is to use your cPanel (or other platform) filemanager to do this, as FTP might be slow.

 

2) Enter your database with PhpMyAdmin, and find the table called "ps_configuration" and find entry "PS_SHOP_DOMAIN". Edit and enter "www.mydomain.com" - without quotes and use your domain!

 

3) On same table you could edit "PS_SHOP_DOMAIN_SSL" to be empty (in case you don't use SSL)

 

4) with FTP head to root/config and edit file called "settings.inc.php". Find this row:

define('__PS_BASE_URI__', '/subdomain/'); (where "subdomain" will be your real subdomain or subfolder)

Modify this to have a dash only, like this:

define('__PS_BASE_URI__', '/');

Save and upload.

 

You should be done!

 

Good luck!

  • Like 1
Link to comment
Share on other sites

Wow, that's sounds easy ... Thank you very much. Another thing, when I do the CMS I saved the pictures on another directory in PS such as

 

http://subdomain.mydomain.com/test01/cms/picture1.jpg

 

Now in the WYSIWYG editor of the cms how can I link to the picture without editing all the cms to

 

http://www.mydomain.com/cms/picture1.jpg

 

This will save me time not to relink every single picture in my cms.....

 

Archproject

Link to comment
Share on other sites

  • 9 months later...
  • 9 months later...

Hi there

 

The process is pretty easy, once you know what and how to do.

 

1) First of all, move all files to the root, from the subfolder. Best is to use your cPanel (or other platform) filemanager to do this, as FTP might be slow.

 

2) Enter your database with PhpMyAdmin, and find the table called "ps_configuration" and find entry "PS_SHOP_DOMAIN". Edit and enter "www.mydomain.com" - without quotes and use your domain!

 

3) On same table you could edit "PS_SHOP_DOMAIN_SSL" to be empty (in case you don't use SSL)

 

4) with FTP head to root/config and edit file called "settings.inc.php". Find this row:

define('__PS_BASE_URI__', '/subdomain/'); (where "subdomain" will be your real subdomain or subfolder)

Modify this to have a dash only, like this:

define('__PS_BASE_URI__', '/');

Save and upload.

 

You should be done!

 

Good luck!

 

 

I have done this and it appeared to work however there are load of pages missing (although all files moved over). 

 

For example: 

 

PAGE NOT AVAILABLE

We're sorry, but the Web address you entered is no longer available

To find a product, please type its name in the field below

Is this because I am on a different version therefore should have taken slightly different steps? 

 

Please help as this is no longer a test site - it is my live site! 

 

The home page is fine there is just no content! 

Edited by gnattle (see edit history)
Link to comment
Share on other sites

I have had a look in the settings.inc.php file you referred to in step 3 and I do not have the PS_BASE_URI - only the below. I changed this informaiton in the advanced parameters as I was prompted to in the back office. I completed the other two steps exactly. 

<?php
define('_DB_SERVER_', 'database.lcn.com');
define('_DB_NAME_', 'annacalvert_co_uk_db_rs');
define('_DB_USER_', '********');
define('_DB_PASSWD_', '888888888');
define('_DB_PREFIX_', 'ps_');
define('_MYSQL_ENGINE_', 'InnoDB');
define('_PS_CACHING_SYSTEM_', 'CacheMemcache');
define('_PS_CACHE_ENABLED_', '0');
define('_MEDIA_SERVER_1_', '');
define('_MEDIA_SERVER_2_', '');
define('_MEDIA_SERVER_3_', '');
define('_COOKIE_KEY_', 'YDwoDXF43F3ILXadGHDbcrBAHF44PapAs7tkVO2GjREnwY8XMSLJRQJ8');
define('_COOKIE_IV_', '4LAtxvXN');
define('_PS_CREATION_DATE_', '2012-10-10');
define('_PS_VERSION_', '1.5.1.0');
define('_RIJNDAEL_KEY_', 'jYNhLsdDZk9kLC32Rb92NKxYYukJN72A');
define('_RIJNDAEL_IV_', 't7qljcVqfMqrNRWNGphsJw==');
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...