Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    help question How do I show url instead of absolute path

    Hello all, Everything is Zen Cart is working fine. I am having an issue with the url showing the relative path when I click on a link within the site.

    Situation: I have unlimited hosting account with Go Daddy so I host several sites. One of my clients has already purchased the domain name with his own Go Daddy account. I already have his url pointing to a folder on my hosting space.
    The url is
    http://www.inx-spot.com.

    The site comes up fine, but when I click on a hyperlink it does not show inx-spot.com any more instead it shows the actual path that the site lives in. For example:
    http://mywebworldnow.com/InxSpotZenC...=index&cPath=1

    What I am trying to accomplish is have the url show:
    http://www.inx-spot.com/index.php?ma...=index&cPath=1


    Here is my ZenCart and Go Daddy server info:
    Server Host: mywebworldnow.com (173.201.216.35) Database Host: myw1027608511176.db.3151988.hostedresource.com (97.74.30.54)
    Server OS: Windows NT P3NW8SH177 6.0 build 6002 Database: MySQL 5.0.91-log
    Server Date: 11/15/2010 12:36:47
    Database Date: 11/15/2010 12:36:47
    Server Up Time: Unsupported
    HTTP Server: Microsoft-IIS/7.0
    PHP Version: 5.2.5 (Zend: 2.2.0)
    PHP Memory Limit: 32M
    PHP Safe Mode: Off
    PHP File Uploads: On
    Max Size: 8M
    POST Max Size: 8M
    Database Data Size: 621 kB
    Database Index Size: 481 kB

    Thank you in advance for any help with this issue. :)

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I show url instead of absolute path

    Most likely a windows issue and a question for your host to correct

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How do I show url instead of absolute path

    Might also check includes/configure.php for correct path info.

  4. #4

    Default Re: How do I show url instead of absolute path

    @ kobra - I will call Go Daddy later today. I do not know if that is completely correct though. I say this because there is another site I host that is all html. It is the same setup. The client has the url on another Go Daddy account and the url is pointed to a folder in my hosting space. It works fine, the url shows the domain name. when I click links within the site. This is the site.
    http://www.packertattoos.com/
    I'm thinking this is something php related. However, I have no previous php experience so I am at a loss when it comes to php.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I show url instead of absolute path

    I will call Go Daddy later today. I do not know if that is completely correct though.
    Since a long ago falling out with Balmer, I shy away from anything MS

    I do know that on a 'nix platform this is configurable at the server to allow a client to set this up

  6. #6

    Default Re: How do I show url instead of absolute path

    @ stevesh - I took a look at the configure.php. It is all showing the folder that I use for the site. I am not sure which to change though. I changed the first to lines to the the url but no change on the site. Could you take a look?
    define('HTTP_SERVER', 'http://www.inx-spot.com');
    define('HTTPS_SERVER', 'https://www.inx-spot.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', '/InxSpotZenCartShoppingCart/');
    define('DIR_WS_HTTPS_CATALOG', '/InxSpotZenCartShoppingCart/');

    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', 'D:\Hosting\3151988\html\InxSpotZenCartShoppingCart/');
    ...
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', 'D:\Hosting\3151988\html\InxSpotZenCartShoppingCart/cache');
    Last edited by WebManV; 15 Nov 2010 at 09:48 PM. Reason: needed to add something

  7. #7

    Default Re: How do I show url instead of absolute path

    It looks like those paths are necessary so the php knows were to find the files. The weird thing though is I clicked on the link. http://www.inx-spot.com/index.php?ma...=index&cPath=1
    and it opened the page.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I show url instead of absolute path

    If truly an added domain under your account

    Try replacing this
    Code:
    define('DIR_WS_CATALOG', '/InxSpotZenCartShoppingCart/');
    define('DIR_WS_HTTPS_CATALOG', '/InxSpotZenCartShoppingCart/');
    With this
    Code:
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    Save your original locally in case

  9. #9

    Default Re: How do I show url instead of absolute path

    Yeap, I don't want to loose my Visual Studio skills though, that is why I'm sticking with the Windows hosting plan. :)

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How do I show url instead of absolute path

    I don't want to loose my Visual Studio skills
    That and $5.00 will get you a large latte at Starbucks

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Prevent absolute path from showing in url.
    By bx32 in forum Basic Configuration
    Replies: 3
    Last Post: 27 Oct 2011, 04:32 PM
  2. Constant/function that returns absolute path for current Template
    By meckanism in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jan 2011, 06:05 PM
  3. Replies: 1
    Last Post: 17 Feb 2010, 03:14 AM
  4. Absolute Path
    By nanajo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Nov 2006, 02:27 AM
  5. Replace Home URL with Website URL instead of Store
    By mlm2005 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Jul 2006, 04:41 PM

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