Closed Thread
Results 1 to 2 of 2

Thread: URL question?

  1. #1
    ahuppert is offline Newbie
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    0

    URL question?

    I am developing a site on a webserver where the URL is the IP Address and the directory where Joomla is installed. The existing domain name is still pointing to another website that is still running. Until I finalize the new site, I do not want to propagate DNS to the new site/server.

    That being said, I have a question about URLs.

    I have gotten the ICONs working by entering in the following URL into the Icon URL field for the published file:

    components/com_ionfiles/images/icons/page_white_acrobat.png

    However, when I enter the pathname for the actual file URL as:

    Mouse/2004-01.pdf

    It does not work. I have to enter:

    http://74.54.176.146/~ahuppert/popch...se/2004-01.pdf

    for it to work. Is this a problem with IE (where I am testing it and it is failing) or perhaps a setting in my Joomla configuration -- for example I have:

    SEF URls set to NO
    and
    Add Suffix to URLs set to NO

    OR is there something that I am doing wrong with the component?

    Andrew

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: URL question?

    Hey Ahuppert. If you have the right base path set in your joom config file then entering (for mosConfig_absolute_path) a relative URL such as "Mouse/2004-01.pdf" should work but will only work for file download, not URL.

    This code:
    Code:
        # if the file prefix is to a local folder, append livesite data by Ed
            # -------------------------------------------------------------
            
    if (strtolower(substr($file,0,7)) != 'http://') {
                if (
    defined'_JEXEC' ) ) {
                    
    $file JPATH_ROOT '/' $file;
                }
                else {
            global 
    $mosConfig_absolute_path;
                    
    $file $mosConfig_absolute_path '/' $file;
                }
            } 
    which was added by one of our members should append your home dir to the file if "http://" is missing. In other words if your absolute path is set to /home/mysite/www then your download url will turn into /home/mysite/www/Mouse/2004-01.pdf

    Check to make sure your path is set correctly and if you still have problems let me know.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question:technical question answering system algorithm?
    By vbehzadan in forum General Programming
    Replies: 1
    Last Post: 04-28-2010, 12:41 PM
  2. Replies: 4
    Last Post: 03-27-2010, 08:27 PM
  3. C# noob question 3, list question
    By Siten0308 in forum C# Programming
    Replies: 3
    Last Post: 01-21-2010, 07:41 AM
  4. QUESTION Strcat/Strstr/strcpy Question
    By wgre0111 in forum C and C++
    Replies: 1
    Last Post: 10-19-2008, 03:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

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