If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Linux/Unix Server / My products and ez pages will only show when I add another / after .com in my domain

My products and ez pages will only show when I add another / after .com in my domain

Started by cmalta on 16 Apr 2013, 12:45 PM · Views: 4,840

Results 1 to 12 of 12
16 Apr 2013, 12:45 PM
#1
cmalta avatar

cmalta

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
6
Plugin Contributions:
0

My products and ez pages will only show when I add another / after .com in my domain

Hello,

I want to thank every person who has made this project possible. It has been a tremendous amount of help for me in trying to develop a cart webpage without incurring into the high costs of outsourcing web development. Thank you

I have the following problem, which I haven't been able to resolve on my own after multiple hours of reading and following instructions.

I have been working on my website in demo mode and I finally brought it to the point where I wanted to make it live. I have followed all the instructions for the Directory session change in the admin console, I have changed the configure.php files both in the admin/includes and includes folders and moved my files to the public_html folder as indicated by my hosting company.

The problem I currently have is that when I go to my website, https://www.redlinedetailproducts.com it displays the website but when I click on any of my ezpages or products it gives me a 404 error. However, when I add a second "/" after ".com" then all my information is displayed correcly. I have backed up my demo folder and moved it to my root directory 3 times already and have done the necessary configurations accordingly. I always get the same result.

Here is my server information:

Server Host: https://www.redlinedetailproducts.com (108.60.3.38) Database Host: localhost (127.0.0.1)
Server OS: Linux dprhcp136.doteasy.com 2.6.18-194.32.1.el5PAE #1 SMP Wed Jan 5 18:43:13 EST 2011 i686 Database: MySQL 5.0.96-community
Server Date: 04/16/2013 05:40:35 Database Date: 04/16/2013 05:40:35
Server Up Time: Unsupported HTTP Server: Apache
PHP Version: 5.2.17 (Zend: 2.2.0) PHP Memory Limit: 128M PHP Safe Mode: Off
PHP File Uploads: On Max Size: 20M POST Max Size: 20M
Database Data Size: 901 kB Database Index Size: 668 kB

I have the following add-ons:
Cowoa
UPS
Shipstation
facebook, twitter and google + buttons

Additionally, I contacted doteasy to find out if it has to do with their servers and they responded me that it has to do with the php script and that they cannot assist me with this issue.

Any help you can provide me I would greatly appreciate because I don't know what else to do at this point.

Thank you,

Carolina

16 Apr 2013, 4:01 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: My products and ez pages will only show when I add another / after .com in my domain

Your URLs are being rewritten somehow so they are not in standard form.
htt p://ww w.redlinedetailpro ducts.com/index.php/main_page/index/cPath/2?zenid=...
should look like
htt p://ww w.redlinedetailpro ducts.com/index.php?main_page=index&cPath=2&zenid=...

What do you have that is causing this? It certainly is no more "SEO" or human-friendly than the original.

16 Apr 2013, 6:50 PM
#3
cmalta avatar

cmalta

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
6
Plugin Contributions:
0

Re: My products and ez pages will only show when I add another / after .com in my domain

Hi gjh42.

Thank you for your reply. I have no idea what could be causing this. Do you know where I could start looking? I also tried taking the rewrite rule away from the .htaccess file in my root directory for the Ceon URI Mapping SEO but there are no changes. I have tried cleaning my cache, cookies, you name it. I don't know where else to look because there are no error logs produced.
I have tried to search everywhere for a possible answer but so far I haven't been able to find someone with the same problem.

Thank you,

16 Apr 2013, 9:51 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: My products and ez pages will only show when I add another / after .com in my domain

The fact that you have CEON URI Mapping installed is critical information for a solution. While it is widely considered the best available rewriting mod, if there is something incorrect about its installation or setup, it can kill your site (as can any other rewriter). Turning it off using whatever method it recommends will tell you if it is the cause, and an expert in the workings of the mod will be able to guide you in correcting its function. (I have not used it.)

16 Apr 2013, 10:15 PM
#5
cmalta avatar

cmalta

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
6
Plugin Contributions:
0

Re: My products and ez pages will only show when I add another / after .com in my domain

Hi gjh42,

Thank you very much for taking the time to point me in the right direction. I will look further into this mod and will post any findings.

Thanks again,
Carolina

17 Apr 2013, 1:44 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My products and ez pages will only show when I add another / after .com in my domain

You might post the contents of your store front configure.php file

X out the database details

Zen-Venom Get Bitten

17 Apr 2013, 10:58 AM
#7
cmalta avatar

cmalta

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
6
Plugin Contributions:
0

Re: My products and ez pages will only show when I add another / after .com in my domain

Hi kobra and gjh42,

Just to follow up on yesterday's thread, I completely took out Ceon URI mapping from my files and database. My only accomplishment was no longer having a 404 error when I clicked anywhere in my website.

Here are both configure.php files. Thank you.

Admin/includes –

/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. /
/
**** The 2 files should be kept separate and not used to overwrite each other. ***********/

/**

  • WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
  • To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
    */
    define('HTTP_SERVER', 'https://www.redlinedetailproducts.com');
    define('HTTPS_SERVER', 'https://www.redlinedetailproducts.com');
    define('HTTP_CATALOG_SERVER', 'http://www.redlinedetailproducts.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.redlinedetailproducts.com');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];

define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
define('DIR_FS_ADMIN', realpath(dirname(FILE) . '/../') . '/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/redlined/public_html/');

//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/home/redlined/public_html/logs');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx*');
define('DB_DATABASE', 'xxxxxx');

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/redlined/public_html/cache');

// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*

  • URLs for your site will be built via:
  • HTTP_SERVER plus DIR_WS_ADMIN or
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
    
  • HTTP_SERVER plus DIR_WS_CATALOG or 
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    
  • ...depending on your system configuration settings
    */
    // EOF

Includes/configure.php:

/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. /
/
**** The 2 files should be kept separate and not used to overwrite each other. ***********/

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.redlinedetailproducts.com');
define('HTTPS_SERVER', 'https://www.redlinedetailproducts.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/redlined/public_html/');

//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/home/redlined/public_html/logs');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxx');
define('DB_DATABASE', 'xxxxxx');

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/redlined/public_html/cache');

// EOF

Carolina

17 Apr 2013, 5:51 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My products and ez pages will only show when I add another / after .com in my domain

I completely took out Ceon URI mapping from my files and database
It appears that you still have an .htaccess file at your "/" that is being used

Try renaming it to htaccess.txt

Zen-Venom Get Bitten

17 Apr 2013, 10:26 PM
#9
cmalta avatar

cmalta

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
6
Plugin Contributions:
0

Re: My products and ez pages will only show when I add another / after .com in my domain

hi kobra,

This morning I was told by a visitor to my website that when they clicked on one of my products, they were redirected to somewhere else. I was shocked but I think this is the issue. I checked my .htaccess file in my public_html file and it always came empty.

I contacted my hosting company today who replied to me saying that there were IP addresses accessing my "file". Also, they have disabled access to my site and that they want to do a complete wipe-out of my files, email, etc to avoid any corrupted files.

Looking at the access logs there has been access to my admin, products, index, and main page files.

I am wondering if this is an issue with the setup of the website or rather a hosting security issue. This may fall out of the scope of this thread but I greatly appreciate your feedback on this if possible.

Thank you,
Carolina

18 Apr 2013, 2:40 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: My products and ez pages will only show when I add another / after .com in my domain

Well, depending how they were accessed could be a teltale

Zen-Venom Get Bitten

18 Apr 2013, 3:37 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: My products and ez pages will only show when I add another / after .com in my domain

Probably a good idea to follow these steps to determine whether your site has been maliciously damaged: http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Apr 2013, 1:21 PM
#12
cmalta avatar

cmalta

New Zenner

Join Date:
Apr 2013
Location:
Florida
Posts:
6
Plugin Contributions:
0

Re: My products and ez pages will only show when I add another / after .com in my domain

Hi kobra,

Thank you so much for all your help. Unfortunately I realized my backup was compromised as well and I have to redo my website. The good side to that is that I have all the mods saved and pretty much all my info saved somewhere else.

I want to thank you again for your support in this forum.

Carolina