+ Reply to Thread
Results 1 to 6 of 6

Thread: Moving Server - $_SERVER[PATH_INFO]

  1. #1
    Client
    Join Date
    Jan 2009
    Location
    Bedford UK
    Posts
    9
    Squirrelcart version
    v2.6.3

    Moving Server - $_SERVER[PATH_INFO]

    I'm having to move SC 3.1.0 to a new server. When I asked if $_SERVER[PATH_INFO] is supported I'm told that;
    The Fasthosts shared Linux servers support the following which appear to return the same information as $_SERVER[PATH_INFO]:

    _SERVER["REDIRECT_URL"]
    _SERVER["REQUEST_URI"]
    _SERVER["SCRIPT_NAME"]
    _SERVER["ORIG_PATH_INFO"]

    Does that mean I am able to use this hosting and still have SEO optimised urls? Any advice would be welcomed.

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    I can never guarantee that our SEO URLs feature will work on any host. However, it is designed to also work with $_SERVER['REQUEST_URI'] and $_SERVER['SCRIPT_NAME'] when $_SERVER['PATH_INFO'] is not available. So, in theory it should work. You would need to try it to be sure.

    You can get a very good idea if it will work by putting the attached file on your server, loading it in a browser, and following the instructions.
    Attached Files

  3. #3
    Client
    Join Date
    Jan 2009
    Location
    Bedford UK
    Posts
    9
    Squirrelcart version
    v2.6.3

    Attachment file - what does it mean?

    Hi Jamie,
    Thanks for your reply.
    I have a hosting account with Fasthosts already (although the site is dormant) and I loaded the attachment.php file there. I've run it but don't get any conclusive output from it.

    The file is at:
    http://www.petstalk.org.uk/attachment.php
    Can you determine from this whether the server will support your SEO url feature?

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    To run the test, you click the link. It's not working because you changed the name of the file.

  5. #5
    Client
    Join Date
    Jan 2009
    Location
    Bedford UK
    Posts
    9
    Squirrelcart version
    v2.6.3

    Oooops!

    That was a bit silly of me! Hadn't spotted the file name had changed. Runs Ok now and says that server supports seo urls.
    As usual, many thanks for your help Jamie.


    Quote Originally Posted by Jamie View Post
    To run the test, you click the link. It's not working because you changed the name of the file.

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Posting Permissions

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