Results 1 to 10 of 31

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Domain redirection questions

    I set up my Zen Card in an add-on domain which I want to re-direct to the current add-on domain. Me and the host did so in the cPanel cofiguration but the problem is is that all the links you click on after that bounces back to to my MAIN domain name...

    ...so I went to /includes/configure.php and tried to change the domain names but it seems not to be working...

    Is there a different way to go about my Zen Card showing the add-on domain right through browsing my Zen Card?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Domain redirection in configure.php

    Since the /includes/configure.php file is normally set to read-only, you'll have to make the file writable before you can save the changes you made to it.
    .

    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.

  3. #3
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by DrByte View Post
    Since the /includes/configure.php file is normally set to read-only, you'll have to make the file writable before you can save the changes you made to it.
    Thanks, so I just change the server domain and make the file writeable?

    I also have my .htaccess file like this:

    Code:
    #RewriteEngine on
    
    #RewriteCond %{HTTP_HOST} ^creativesportsart.com$ [OR]
    
    #RewriteCond %{HTTP_HOST} ^www.creativesportsart.com$
    
    #RewriteRule ^/?$ "http\:\/\/www\.art\.theartgangster\.com" [R=301,L]
    not sure if this is correct? My main domain is: theartgangster.com and the addon domain is creativesportsart.com

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by rooisnor View Post
    Thanks, so I just change the server domain and make the file writeable?

    I also have my .htaccess file like this:

    Code:
    #RewriteEngine on
    
    #RewriteCond %{HTTP_HOST} ^creativesportsart.com$ [OR]
    
    #RewriteCond %{HTTP_HOST} ^www.creativesportsart.com$
    
    #RewriteRule ^/?$ "http\:\/\/www\.art\.theartgangster\.com" [R=301,L]
    not sure if this is correct? My main domain is: theartgangster.com and the addon domain is creativesportsart.com
    Not sure what you are trying to do here. You commented out all the commands, are you expecting it to do a redirection?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by yellow1912 View Post
    Not sure what you are trying to do here. You commented out all the commands, are you expecting it to do a redirection?

    I was trying to get the redirection to all the pages working... if you click on anything it went back to my main page and didn't stay with the addon domain...

    But I reload a stock version of the htaccess file back onto my server

  6. #6
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by DrByte View Post
    Since the /includes/configure.php file is normally set to read-only, you'll have to make the file writable before you can save the changes you made to it.
    Ok, I've tried that but it seems not to be working!

    But it aseems to me i ran into a different problem... the stylesheet seems to not working properly... or something else went wrong

    here is the site:
    http://creativesportsart.com/

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Domain redirection in configure.php

    What exactly did you change in your configure.php files?

    It's looking for your stylesheet at: http://creativesportsart.com/art ... which suggests that you forgot to remove the /art from the DIR_WS_CATALOG setting.
    .

    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.

  8. #8
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by DrByte View Post
    What exactly did you change in your configure.php files?

    It's looking for your stylesheet at: http://creativesportsart.com/art ... which suggests that you forgot to remove the /art from the DIR_WS_CATALOG setting.
    I haven't change anything. I've tried to make it writable and changed the domain names (SERVERS) to my addon domain but after I realized that weren't working I UNDO all the changes and uploaded it again... and it ended up like this...

    here is a copy of my configuration.php

    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.3.8
     * @copyright Copyright 2003-2007 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     */
    
    
    /*************** 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.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      define('HTTP_SERVER', 'http://theartgangster.com');
      define('HTTPS_SERVER', 'https://theartgangster.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'false');
    
    // 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', '/art/');
      define('DIR_WS_HTTPS_CATALOG', '/art/');
    
      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/artgang/public_html/art/');
    
      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', 'zen_');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', '*********');
      define('DB_SERVER_PASSWORD', '*********');
      define('DB_DATABASE', 'artgang_zc1');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
    
      // 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', 'database'); 
      define('DIR_FS_SQL_CACHE', '/home/artgang/public_html/art/cache');
    
    // EOF

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Domain redirection in configure.php

    No, it's got nothing to do with the database.
    Quote Originally Posted by rooisnor View Post
    define('HTTP_SERVER', 'http://theartgangster.com');
    define('HTTPS_SERVER', 'https://theartgangster.com');

    define('DIR_WS_CATALOG', '/art/');
    define('DIR_WS_HTTPS_CATALOG', '/art/');
    So, if you're changing to a different domain, and not using the subdirectory anymore, just do this:
    Code:
      define('HTTP_SERVER', 'http://www.THENEWDOMAIN.com');
      define('HTTPS_SERVER', 'https://www.THENEWDOMAIN.com');
    
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    .

    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.

  10. #10
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection questions

    Seems to me it's database problem since non of the links are working either...

 

 

Similar Threads

  1. Domain Redirect and SEO Questions
    By DBB1 in forum General Questions
    Replies: 6
    Last Post: 19 Oct 2010, 05:59 AM
  2. domain redirection problem
    By zerohanzo in forum General Questions
    Replies: 1
    Last Post: 20 May 2010, 04:52 AM
  3. Moving Site to new domain, a few questions
    By humbll in forum General Questions
    Replies: 7
    Last Post: 19 Jul 2007, 09:06 AM
  4. duplicate store on new domain - questions
    By humbll in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 25 May 2007, 01:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg