Jump to content

making my site live and editing config.php file?


dazlia

Recommended Posts

Hi folks,

I've got a testsite at the minute and in order to make it live ive just copied everything from my test folder into the root directory public_html

I'm led to believe, having read other threads on here that im supposed to do the following :-

 

settings.inc.php (public_html/config/settings.inc.php). Change the line:

define('__PS_BASE_URI__', '/test/');

into:

define('__PS_BASE_URI__', '/');

At this moment in time i haven't edited that php file and when i visit my URL it automatically forwards to the test folder, which im guessing is what you'd expect?

The problem being that my config php file contains the following line so im not sure exactly how to edit this?

This is what i can see in my php file :-

 

/* Initialize the current Shop */
Context::getContext()->shop = Shop::initialize();
define('_THEME_NAME_', Context::getContext()->shop->getTheme());
define('__PS_BASE_URI__', Context::getContext()->shop->getBaseURI());

any ideas please? thanks guys

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

I might be missing something here Vekia so forgive me mate. If i login using the URL that you suggested though it contains 'shop2' in the URL so surely I'd be logging into my test folder (shop2) and any changes I make in there wont effect my live site which is obviously outside that folder?

 

Link to comment
Share on other sites

Vekia, one more questions mate sorry. I can now login using 2 seperate URLS'

http://domain/shop2/admin-1375139806/

or

http://domain.co.uk/admin-1375139806/

so i logged into what i thought was my live site using the first link above and changed it from "/shop2/" to "/" and the site now works. HOWEVER, ive noticed then when i look at the back office for my test account its also changed it in there. In other words, anything I do in either back office is reflected in the other back office.

 

Is that supposed to happen?

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...