Results 1 to 10 of 22

Threaded View

  1. #22
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Running CEON URI Mapping in a subfolder

    Quote Originally Posted by swguy View Post
    OK here's the fix:
    - in includes/configure.php, use DIR_WS_CATALOG for the folder name. Don't append the folder name to HTTP_SERVER.
    - in .htaccess, you want these changes vs what's recommended in admin:

    # At the top:
    Options +FollowSymLinks -MultiViews

    DirectoryIndex index.php
    RewriteEngine On
    RewriteBase /mysite/

    # At the bottom:
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.+) index.php [QSA,L]

    PLUS you need MC's suggestion about prepending /yourstore to the uris in the table ceon_uri_mappings
    I agree with everything except the "necessity" of the revised htaccess to check for the presence file and folder requests.

    When HTTP_SERVER contains, as it should, just the server and DIR_WS_CATALOG contains the sub-directory as also is expected I have had success with the provided htaccess in a sub-directory provided that sub-directory didn't also have an htaccess file. If it did, I had to reiterate the rules in that sub-directory based on the server's configuration.

    The recommended file/folder check adds additional processing to the process of searching the filesystem as compared to evaluating the provided uri to eliminate those things that are of known concern. Yes, the above recommended revision is more flexible in that the htaccess need not be revisited for future modifications, but at a page-by-page cost and allowance of alternate content to be stored in the file system matching an existing request that would otherwise be handled by index.php.
    Last edited by swguy; 6 Jun 2019 at 04:21 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v156 Ceon URI Mapping V5.0
    By Neil Kerr_Ceon in forum All Other Contributions/Addons
    Replies: 391
    Last Post: 19 May 2026, 06:09 PM
  2. Ceon URI Mapping v4.x
    By conor in forum All Other Contributions/Addons
    Replies: 2444
    Last Post: 7 Oct 2020, 03:13 AM
  3. 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
  4. CEON URI Mapping
    By jmkent in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2012, 04:28 PM
  5. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 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