Jump to content

Admin wrong path


Guest karatra

Recommended Posts

Guest karatra

Hello all,

I have the following configuration with Cubecart 4.3.4:

Website is https://www.domain.com/newshop/ (Please notice the https).

My global.inc.php is the following (personal data changed):

$glob['adminFile'] = 'admin.php';

$glob['adminFolder'] = 'admin';

$glob['dbdatabase'] = 'database';

$glob['dbhost'] = 'localhost';

$glob['dbpassword'] = 'password';

$glob['dbprefix'] = 'prefix_';

$glob['dbusername'] = 'user';

$glob['encoder'] = 'ioncube';

$glob['installed'] = '1';

$glob['license_key'] = 'xxxxxx-xxxxx-xx-xxxxxxxxxx-xxxxxxxx';

$glob['rootRel'] = '/newshop/';

$glob['storeURL'] = 'https://www.domain.com/newshop';

My problem is the following:

1- When I try to access to https://www.domain.com/newshop/admin/:

- it redirects me first to: https://www.domain.com/newshop/admin.php?_g...hop%2Fadmin.php and it shows login fields

- once I log in (with right or wrong password), it redirects me to https://www.domain.com/admin.php?_g=login&a...hop%2Fadmin.php and of course 404 error.

2- Images are not shown because in the wrong path:

For example https://www.domain.com/skins/SKIN/styleImag...umb_nophoto.gif https://www.domain.com/newshop/skins/SKIN/s...umb_nophoto.gif

Can someone help me to fix that?

The history of this site is that someone (I cannot contact him anymore) was developping it on http://localhost/othername/ (not newshop) and he sent me the script and the dumped database.

Thanks in advance.

Link to comment
Share on other sites

It could be because you have the store '$glob['storeURL' configured https, normally it should be http and then you use the settings within admin to either enable ssl or not. I would change that to http and see if you can get into admin and check the settings for ssl.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...