I’m sure this will fall under the heading of “dumb question”, but I haven’t found an answer in the knowledgebase or via forum search, so here goes:
Just installed a trial version of 12, and can’t see the customer front end. The cart is installed into the site root and I have no trouble accessing the admin at ipaddress/temp_account_name/renamed_admin.php. When I try to hit ipaddress/temp_account_name/index.php, it heads to ipaddress/index.php and errors out.
I can see that index.php in the root folder contains:
header('Location: ../index.php');
?>
It's apparently trying to look for index.php in a directory above the site root, and it won't find anthing there of course. Where [I]should[/I] it be looking?
Thanks in advance...
[quote name=‘Dardanus’]I’m sure this will fall under the heading of “dumb question”, but I haven’t found an answer in the knowledgebase or via forum search, so here goes:
Just installed a trial version of 12, and can’t see the customer front end. The cart is installed into the site root and I have no trouble accessing the admin at ipaddress/temp_account_name/renamed_admin.php. When I try to hit ipaddress/temp_account_name/index.php, it heads to ipaddress/index.php and errors out.
I can see that index.php in the root folder contains:
header('Location: ../index.php');
?>
It's apparently trying to look for index.php in a directory above the site root, and it won't find anthing there of course. Where [I]should[/I] it be looking?
Thanks in advance...[/quote]
Your config.local.php is probably missing the "[I]/temp_account_name/"[/I] folder in the path.
[quote name=‘indy0077’]Your config.local.php is probably missing the "/temp_account_name/" folder in the path.[/QUOTE]
Possibly! What I have is this:
-------------------------------------------------------------------------------------------------
// Host and directory where software is installed on no-secure server
$config[‘http_host’] = ‘[ipaddress]’;
$config[‘http_path’] = ‘[temp_account_name]’;
// Host and directory where software is installed on secure server
$config[‘https_host’] = ‘[OtherURL for shared SSL]’;
$config[‘https_path’] = ‘[temp_account_name]’;
/*
- Misc options
*/
// Names of index files for administrative and customer areas
$config[‘admin_index’] = ‘renamed_admin.php’;
$config[‘customer_index’] = ‘index.php’;[/QUOTE]
-------------------------------------------------------------------------------------------------
This is what the installer pre-filled, and I accepted, as those values seemed correct. No?
Looks like the problem was the index file itself. I checked the index.php in my install folder and found lots more code there than what I pasted here upthread. Copied that to the root folder on my server, and magically the problem is solved.
Thanks, indy0077, for your help!
[quote name=‘Dardanus’]I checked the index.php in my install folder and found lots more code there than what I pasted here upthread. Copied that to the root folder on my server, and magically the problem is solved…[/quote]
Odd… However it works now.
Check your .htaccess file. It is probably redirecting you to the root of your site. REWRITE_BASE should be your subfolder where the cart is installed.