Originally Posted by
swguy
This change is just needed for development - the live site is at the root.
But what I'm seeing is that when I get into index.php, the URL I have is just "index.php" - no args are passed so it always goes to the home page. $_GET is empty. How do the arguments from
http://localhost:8888/mysite/category/product get to Zen Cart?
They get there by the uri actually reaching the sub-directory. Meaning, with the current arrangement. As far as the plugin is concerned, all rewritten uris are based off of the current HTTP_SERVER or HTTPS_SERVER where neither of those have a sub-directory in them. When the link is generated, an attempt is made to access the localhost at its root, which in this case is not supporting the catalog.
So a potential solution if the associated database table is not being transferred back or even if it is that the below is undone, then could prepend all of the uris with your sub-directory (considering it is a local host and not really "worried" about the SEO part.)
Code:
UPDATE ceon_uri_mappings SET uri= CONCAT('/mysite', uri);
To subsequently remove, I expect (though haven't tested) to work:
Code:
UPDATE ceon_uri_mappings SET uri = REPLACE(uri, '/mysite', '');
Note, that this will replace all such occurrences within a given string, so hopefully '/mysite' is unique to just the prefix of the uri. Otherwise a more involved query would be needed.
Bookmarks