Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by DrByte View Post
    No, it's got nothing to do with the database.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', '/');
    nope, when I want to upload it the .php file the font turns all yellow and it doesn't work. The Page is still screwed up and the links don't work

    I think I'll just have to install a new version and came back to get the redirection working! Thanks... I'll report back
    Last edited by rooisnor; 8 Dec 2008 at 11:35 PM.

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

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by rooisnor View Post
    nope, when I want to upload it the .php file the font turns all yellow and it doesn't work
    huh?

    The file has to be marked read-write in order to upload changes.
    .

    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. #13
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by rooisnor View Post
    nope, when I want to upload it the .php file the font turns all yellow and it doesn't work. The Page is still screwed up and the links don't work

    I think I'll just have to install a new version and came back to get the redirection working! Thanks... I'll report back
    Quote Originally Posted by DrByte View Post
    huh?

    The file has to be marked read-write in order to upload changes.
    I set the permissions to read/write but then the font turns black... the file doesn't look active! That's why say.. something went corrupt while I was trying to do a simple re-direction of an addon domain

  4. #14
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Domain redirection in configure.php

    black?
    yellow?

    Sounds like you're using a web-based file manager? It would likely be simpler and safer to use a normal FTP program for your actual file transfers.
    .

    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.

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

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by DrByte View Post
    black?
    yellow?

    Sounds like you're using a web-based file manager? It would likely be simpler and safer to use a normal FTP program for your actual file transfers.
    I'm using Dreamweaver...

  6. #16
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Domain redirection in configure.php

    Again, safer to use an FTP program.
    .

    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.

  7. #17
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection in configure.php

    Quote Originally Posted by DrByte View Post
    Again, safer to use an FTP program.
    I need to have an editor to change scripts? Can't do it with File Zilla though... I use the latter to upload files...

    Anyways... thanks for the help! This site is totally screwed up, so I'll install a fresh copy and do it all over again...

    But I'll be back at this topic to get the re-direction done

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

    Default Re: Domain redirection questions

    hmmm... for some odd reason the site is working again without touching anything... seems to me the stylesheet kicked in again and all the links are working!

    One question before I ramble on about the redirection... is the configuration.php in working order... or perfect?

    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', '********_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. #19
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Domain redirection questions

    It'll work, but it's set up to build links to your theartgangster.com domain, instead of the creativeart one
    .

    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. #20
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Domain redirection questions

    Quote Originally Posted by DrByte View Post
    It'll work, but it's set up to build links to your theartgangster.com domain, instead of the creativeart one
    Thanks Dr!

    I re did the site just for incase... the new folder for the addon domain is now /artist/

    I'll appreciate if you can help me with the rest of the redirection of the domain. I've setup the cPanel to redirect to creativesportsart.com but would like to have all the links point to creativesportsart also...

    Thanks

 

 
Page 2 of 4 FirstFirst 1234 LastLast

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