Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default CEON. URI Transfer from local computer to web host

    Post has been transferred to allow longer discussion than would be allowed in original support thread.
    Quote Originally Posted by palafirst View Post
    Re: Ceon URI Mapping v4.x
    I've been searching everywhere, but cannot find an answer to what I would think would be a common question.

    I'm building a ZenCart site locally on my computer using AMPPS server software. I'm using Ceon URI Mapping. When I did a test of moving the site to the hosting server all of my links no longer work. Is there a way to have Ceon URI Mapping automatically update all of the links? What is the best way to do this? Is it possible or must I build the site, or at least add all my products, on the final server?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: CEON. URI Transfer from local computer to web host

    Quote Originally Posted by palafirst View Post
    I've been searching everywhere, but cannot find an answer to what I would think would be a common question.

    I'm building a ZenCart site locally on my computer using AMPPS server software. I'm using Ceon URI Mapping. When I did a test of moving the site to the hosting server all of my links no longer work. Is there a way to have Ceon URI Mapping automatically update all of the links? What is the best way to do this? Is it possible or must I build the site, or at least add all my products, on the final server?
    So CEON URI is a database managed URI rewriter that uses the path of the store to create the associated link(s). Now, I think of this "exercise" more as a database manipulation than a "set it up equivalent" the first time exercise.
    Basically, if you are familiar with how to add the other rewrites that are not included with the utility then you could do a SQL update to replace the prefix of the URI or to copy it over in your local database before transferring to your site, and then deleting the entries that relate to your local server, keeping the entries related to your remote server.

    Otherwise, I would think there is something that can be "setup" to have CEON create URIs on your local server so that they are in fact in a relative format to your online server. It creates the link(s) relative to the information held in I think HTTP_CATALOG/HTTPS_CATALOG. So whatever works from there.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,756
    Plugin Contributions
    30

    Default Re: CEON. URI Transfer from local computer to web host

    When I implemented the code tested locally to my hosting I just regenerated the .htaccess code. Even now I have identical databases in use remotely and locally. The only change is the .htaccess file.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  4. #4
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: CEON. URI Transfer from local computer to web host

    Quote Originally Posted by torvista View Post
    When I implemented the code tested locally to my hosting I just regenerated the .htaccess code. Even now I have identical databases in use remotely and locally. The only change is the .htaccess file.
    My guess, and we'll have to wait for the OP to respond is that the local database is in a different subdirectory off of the local web server than the remote database. Ie, http://localhost/store2 as compared to http://www hostname com instead of http//localhost with the same remote. By having a different subdirectory for the local site as compared to the remote site, the CEON URI's won't match and therefore not work properly when transferred.

    Sound correct?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: CEON. URI Transfer from local computer to web host

    Quote Originally Posted by mc12345678 View Post
    My guess, and we'll have to wait for the OP to respond is that the local database is in a different subdirectory off of the local web server than the remote database. Ie, http://localhost/store2 as compared to http://www hostname com instead of http//localhost with the same remote. By having a different subdirectory for the local site as compared to the remote site, the CEON URI's won't match and therefore not work properly when transferred.

    Sound correct?
    No.. I agree with Torvista.. The issue is likely that he is using the SAME .htaccess file for his local and live versions.. and honestly he needs to post a WHOLE LOT MORE DETAIL than saying "When I did a test of moving the site to the hosting server all of my links no longer work" (which tells us NOTHING) to know exactly what the problem is..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: CEON. URI Transfer from local computer to web host

    Quote Originally Posted by DivaVocals View Post
    No.. I agree with Torvista.. The issue is likely that he is using the SAME .htaccess file for his local and live versions.. and honestly he needs to post a WHOLE LOT MORE DETAIL than saying "When I did a test of moving the site to the hosting server all of my links no longer work" (which tells us NOTHING) to know exactly what the problem is..
    Sigh, so, yes OP's input is needed. Regarding my statement, I have the following supporting information that the problem could be related to the difference of sub directories off of the local server as compared to the remote server. It could be that I have things setup incorrectly, but here goes with what I have seen.
    My active cart is installed iin a subdirectory of our host.
    The configure.php's each identiify the server variable as only the server name (not the server name/subdirectory) as described and explained in the files as well as on this site.
    Per the instructions of the htaccess generator of the plugin, the htaccess file is placed in the stores root (not in the stores directry)
    Autogenerated URIs are created that include the subdirectory as the first part of the path to the new URI.
    A subdomain assignment was not used because we have not paid for a separate SSL certificate (non-profit organization)
    Our host though, even though we don't have our own SSL certificate, provides SSL communication via a rearrangement of the host name allowing all subdirectories to remain the same following the host name. So the configure.php's need nothing special other than the different host name for SSL communication.
    At a point in time after using this plugin and assigning URIs, the subfolder was changed. This resulted in the redirection URIs attempting to go to the old directory until they were updated to reflect the current subdirectory.
    Hence if the subdirectory in which the URIs are originally assigned is changed, then the URIs will not properly follow.
    So that is why I stated that if the local server does not mirror the destination server, the generated URIs when transferred will not properly follow.
    Now, if there is an htaccess trick to modify that or work around the differences of the subdirectories, I know I would appreciate it. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: CEON. URI Transfer from local computer to web host

    Quote Originally Posted by mc12345678 View Post
    Sigh, so, yes OP's input is needed. Regarding my statement, I have the following supporting information that the problem could be related to the difference of sub directories off of the local server as compared to the remote server. It could be that I have things setup incorrectly, but here goes with what I have seen.
    My active cart is installed iin a subdirectory of our host.
    The configure.php's each identiify the server variable as only the server name (not the server name/subdirectory) as described and explained in the files as well as on this site.
    Per the instructions of the htaccess generator of the plugin, the htaccess file is placed in the stores root (not in the stores directry)
    Autogenerated URIs are created that include the subdirectory as the first part of the path to the new URI.
    A subdomain assignment was not used because we have not paid for a separate SSL certificate (non-profit organization)
    Our host though, even though we don't have our own SSL certificate, provides SSL communication via a rearrangement of the host name allowing all subdirectories to remain the same following the host name. So the configure.php's need nothing special other than the different host name for SSL communication.
    At a point in time after using this plugin and assigning URIs, the subfolder was changed. This resulted in the redirection URIs attempting to go to the old directory until they were updated to reflect the current subdirectory.
    Hence if the subdirectory in which the URIs are originally assigned is changed, then the URIs will not properly follow.
    So that is why I stated that if the local server does not mirror the destination server, the generated URIs when transferred will not properly follow.
    Now, if there is an htaccess trick to modify that or work around the differences of the subdirectories, I know I would appreciate it. :)
    Okay, so I've been thinking about this a little further, one thought that came to mind is that prior to the htaccess code to work with this plugin, it could be possible to redirect the old folder to the new folder and not require changes to the database, but that seems sloppy. I'm also not sure how the URIs will look after that/as a result. I can't remember if I tried that route when it had happened.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Oct 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: CEON. URI Transfer from local computer to web host

    First of all THANKS to everyone for your thoughts, ideas and work on this issue. I think Torvista and mc12345678 may be right and that it has to do with the fact that the name of the directory where the site is sitting on the web server is different. I'm going to do a test to check if creating the site in a directory of the same name will make a difference. Honestly the problems (mostly due to my own lack of knowledge) have made me nervous about the process of moving the site and we're going to avoid the possible pain and do an end around.

    Fortunately, we haven't started inputting products so all the discussion has made me reconsider finishing the site locally (AMPPS)...and have decided to go ahead and take the designed site...upload it to the web server and do the product input online. Part of the decision was based on the fact that we don't want to take the chance with complex solutions (ie Db changes, etc.) the other is that in the Ceon URI documentation they have the following:

    HTML Code:
    If the site has existing Categories/Products/Manufacturers/EZ-Pages, they'll continue to use the standard Zen Cart dynamic URIs, until a URI has been entered or auto-generated for them, by editing the respective Category/Product/Manufacturer/EZ-Page in the admin.
    This means going in and editing every Category/Product/Manufacturer/EZ-Page for which a static URI mapping is desired.
    This gives you full control over all of the site's URIs, one of the main points of this module.
    Since it sounds like the module is made to keep the old page address we just don't want to mess with it at the point because we want to have the site up and running soon. On the other hand I'm definitely interested in exploring this issue because I want to continue developing Zen Cart sites locally and if there is a easily replicable way of solving this problem I would like to do it.

    I'll do some experimentation with creating the site in a directory with the same name as the local version...and with playing with the .htaccess file. I'll update the thread with my progress.

    Thanks!

 

 

Similar Threads

  1. v139h Ceon URI Mapping - Moved to New Host Server
    By srlaird in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 11 Aug 2014, 06:40 PM
  2. More store in the same host with CEON URI Mapping?
    By shades12345 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 13 Sep 2011, 09:00 PM
  3. Moving Zen-Cart from local windows computer to unix host.
    By Dev_Armando in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 13 Nov 2009, 06:35 PM
  4. Some images not found after transfer from local server to host server
    By simon1066 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 1 Apr 2009, 02:48 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR