Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    34
    Plugin Contributions
    0

    Default Remove folder name from URL?

    Hello everybody,

    I have my latest ZC installation inside folder and I would like to keep it that way because I have other sites on my hosting plan. The thing is I want to access it without entering full path. I could do this via redirect in cpanel, but the folder name is still there.

    Website is: sportak.rs
    ZC: sportak.rs/zenner

    Here is my includes/configure.php settings:
    PHP Code:
      define('HTTP_SERVER''http://sportak.rs');
      
    define('HTTPS_SERVER''https://sportak.rs');

      
    // 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''/zenner/');
      
    define('DIR_WS_HTTPS_CATALOG''/zenner/');

      
    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/weljkodj/public_html/zenner/'); 
    and admin/includes/configure.php settings:
    PHP Code:
    define('HTTP_SERVER''http://sportak.rs');
      
    define('HTTPS_SERVER''https://sportak.rs');
      
    define('HTTP_CATALOG_SERVER''http://sportak.rs');
      
    define('HTTPS_CATALOG_SERVER''https://sportak.rs');

      
    // Use secure webserver for catalog module and/or admin areas?
      
    define('ENABLE_SSL_CATALOG''false');
      
    define('ENABLE_SSL_ADMIN''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_ADMIN''/zenner/adminname/');
      
    define('DIR_WS_CATALOG''/zenner/');
      
    define('DIR_WS_HTTPS_ADMIN''/zenner/adminname/');
      
    define('DIR_WS_HTTPS_CATALOG''/zenner/');

      
    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)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      
    define('DIR_FS_ADMIN''/home/weljkodj/public_html/zenner/adminname/');
      
    define('DIR_FS_CATALOG''/home/weljkodj/public_html/zenner/'); 
    I have just entered essential parts of these files.

    So the files should stay at the same folder but the folder name must not be in the URL.

    Thank you in advance and sorry if there is another thread like this.

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Remove folder name from URL?

    So the files should stay at the same folder but the folder name must not be in the URL.
    What you want to do cannot be done. Sorry!

    Vger

  3. #3
    Join Date
    Oct 2010
    Posts
    34
    Plugin Contributions
    0

    Default Re: Remove folder name from URL?

    Thanks Vger, sorry to hear that.

    Maybe by editing .htaccess?
    I'm not that familiar with it so I could use some advices.
    Thank you.

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Remove folder name from URL?

    No, you cannot remove a folder name using .htaccess.

    The only thing you can do is what is called a "masked redirect", which involves putting the site inside a frame - but it would be disastrous to use frames as search engines cannot get past the first frames page. And before you ask - there's no way around that.

    A "masked redirect" is also not something you do on your website, but through the control panel provided by the company you bought the domain from (if they provide that service, which few companies now provide). It also means that every single page request has to go to their servers first to be redirected from them to you.

    Vger

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

    Default Re: Remove folder name from URL?

    And many payment processors will flag your site for fraud (or risk thereof) if you're running your site using a "masked redirect" / inside a frame.
    .

    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.

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

    Default Re: Remove folder name from URL?

    MORE IMPORTANT is WHY are you wanting to do this at all? What's the business problem you're trying to solve with this "solution" you've jumped to before posting for help?
    .

    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.

 

 

Similar Threads

  1. v150 change main host folder name and admin folder name after install?
    By Johnnycopilot in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 27 Aug 2012, 08:25 PM
  2. site folder name in URL
    By slater555 in forum General Questions
    Replies: 1
    Last Post: 21 Feb 2011, 06:53 AM
  3. Getting Rid of folder name "zencart" from my URL
    By twoturtles in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 6 Nov 2009, 04:58 PM
  4. URL shows the /ZenCart folder. How to remove?
    By CheapStairParts in forum General Questions
    Replies: 8
    Last Post: 11 Jul 2008, 02:53 PM
  5. Upgrade from 1.3.5 to 1.3.6 : Admin folder name changed.
    By getreload in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 3 Nov 2006, 11:49 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