Page 222 of 245 FirstFirst ... 122172212220221222223224232 ... LastLast
Results 2,211 to 2,220 of 2445
  1. #2211
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by paul3648 View Post
    I have this working by setting up my install folder as an apache2 virtual host, then putting the CEON mappings directly in the conf file of /etc/apache2/vhosts.d folder.

    So rather than accessing it as http://localhost/myinstall I access it as http://myinstall
    Thanks for that @paul3648, I'd tried that a couple of years ago but had issues. I'll give it another shot.

  2. #2212
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by simon1066 View Post
    Not sure what pointers you need but I have my local dev copies of ZC running on a windows pc (uniformserver), this is the way I've done it and apologies in advance if I'm teaching you to suck eggs:

    by editing the windows etc/hosts file I access the dev site just by using example.com - no localhost to worry about and this means my URI's are the same as my live site. Of course this means I can't access the live site on this PC without changing the hosts file, which is fine as I have another PC for live site access.

    my CEON htaccess (root) content is the same as yours.

    my includes/configure.php is
    Code:
    define('HTTP_SERVER', 'https://example.com');
    define('HTTPS_SERVER', 'https://example.com');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    define('DIR_FS_CATALOG', 'C:/server/UniserverZ/www/example.com/');

    Hope this helps.
    If I had a single test-site, that would work; unfortunately, I've got a bunch of them.

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

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by lat9 View Post
    If I had a single test-site, that would work; unfortunately, I've got a bunch of them.
    The other that I have seen to work is to modify the HTTP_SERVER to include the sub-directory (to support transitioning the rewrites from local host to live) and then regarding the .htaccess, since the destination site will not have the store in the same sub-directory, an .htaccess file could be written now that when transferred would still apply to the live site.

    So in light of not providing some internal "server/host name" would suggest:

    Code:
    define('HTTP_SERVER', 'http://localhost/store_name');
    define('HTTPS_SERVER', 'https://localhost/store_name');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    and then in the .htaccess (located in the store_name sub-folder) after RewriteEngine on:

    Code:
    RewriteEngine on
    RewriteCond %{ENV:URI} ^$
    RewriteRule ^(.*)$ - [ENV=URI:$1]  
    
    RewriteCond %{ENV:BASE} ^$ 
    RewriteCond %{ENV:URI}::%{REQUEST_URI} ^(.*)::(.*?)\1$ 
    RewriteRule ^ - [ENV=BASE:%2]
    
    # All of the RewriteCond's from Ceon URI rewriter with the below modified RewriteRule
    # Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
    # ETC....
    RewriteRule ^(.*)$ %{ENV:BASE}index.php [L,QSA]
    This should allow and support that the URIs generated in the database will be based off of the HTTP_SERVER/HTTPS_SERVER content (happens to include a sub-folder) and that the htaccess will redirect to the sub-folder in which it currently resides.

    Credit for the additional content or direction of the .htaccess file modification goes to at least Jon Lin on stackoverflow.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Ceon URI Mapping v4.x

    although:
    Code:
    %{ENV:BASE}
    May need to be added to the right side of each of the RewriteCond statements since they specifically identify a folder to exclude rather than testing the filesystem to identify that the provided link is to an existing file or not.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #2215
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Thanks, @mc12345678; I'll give that a try and report back.

  6. #2216
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by lat9 View Post
    Thanks, @mc12345678; I'll give that a try and report back.
    ... and reporting back, I am.

    With a combination of @mc12345678's comments (prodding my memory), what I did was two-fold:

    Updated the configure.php's to contain:
    HTTP_SERVER = http://localhost/store_name
    HTTPS_SERVER = https://localhost/store_name
    DIR_WS_CATALOG = /

    The change to the .htaccess file was much simpler, I simply added

    RewriteBase /store_name/

    just after the RewriteEngine On and before the start of the Ceon URI rules. I'm doing a happy-dance; thanks again, @mc12345678!

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

    Default Re: Ceon URI Mapping v4.x

    Welcome and that was going to be my suggestion if the local and destination site were to be in the same sub-directory so that it would be consistent (no "update" comment/notes needed)... :) but glad that that issue is addressed, don't party all night! :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #2218
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Unfortunately, that was necessary but not sufficient. The redirects are now being pushed to /localhost/store_name/uri but something's still not right.

    I can get the category links to work, but not the product-specific ones. I'll report back (yet again) when I've figured out what the heck is going on.

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

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by lat9 View Post
    Unfortunately, that was necessary but not sufficient. The redirects are now being pushed to /localhost/store_name/uri but something's still not right.

    I can get the category links to work, but not the product-specific ones. I'll report back (yet again) when I've figured out what the heck is going on.
    Assuming that before clicking on a link to a product that looking at the link generated/to be followed? Or just seeing that after clicking the desired result is not obtained?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #2220
    Join Date
    Mar 2018
    Location
    atlanta
    Posts
    10
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    i have the latest zen cart and no other modules.

    i copied the .htaccess from the output of the installation check, and got

    "The requested URL /furniture/folding-butterfly-sakura-bamboo-handheld-vintage-fan-for-beach-s was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

    same results if i added the slash, i.e. RewriteRule .* /index.php [QSA,L]

    the URL comes from clicking the item on my home page https://www.bamboyant.life/

    i got most of the files from torvista/CEON-URI-Mapping https://github.com/torvista/CEON-URI-Mapping (for php 7), except for the few files from the latest ceon uri mapping.

 

 

Similar Threads

  1. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  2. CEON URI Mapping
    By jmkent in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2012, 04:28 PM
  3. Ceon URI Mapping (SEO)
    By conor in forum All Other Contributions/Addons
    Replies: 2906
    Last Post: 9 Sep 2011, 08:31 AM
  4. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 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