Re: Ceon URI Mapping v4.x
I followed the instructions to do the following:
* For example, to create a static URI for “index.php?main_page=specials”:
uri: /latest-offers
main_page: specials
by updating the table ceon_uri_mappings, now when i type the URLwww.mysite.com/latest-offers
it takes me to the special page but the URL in the browser change to
www.mysite.com/index.php?main_page=specials
Did i forget something?
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
TamyA
I followed
the instructions to do the following:
* For example, to create a static URI for “index.php?main_page=specials”:
uri: /latest-offers
main_page: specials
by updating the table ceon_uri_mappings, now when i type the URLwww.mysite.com/latest-offers
it takes me to the special page but the URL in the browser change to
www.mysite.com/index.php?main_page=specials
Did i forget something?
Which instructions?
What specific SQL was used to add the record to the database?
Are uris of other product that are generated working fine or are they too responding by taking the visitor to the desired page but with the base ZC uri?
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
mc12345678
Which instructions?
What specific SQL was used to add the record to the database?
Are uris of other product that are generated working fine or are they too responding by taking the visitor to the desired page but with the base ZC uri?
I use the insert SQL statment to insert that information in the table
uri
The products/category pages are working fine but still have some pages like specials, contact us, shipping and return that shows index.php?main_page= in the url and my understanding that these pages need to be added to the table manually.
Quote:
* Please note: There is no admin interface for entering these URI mappings in this module, they have to be entered manually (using software such as PHPMyAdmin).
Re: Ceon URI Mapping v4.x
The issue is that current_uri is set to false (0) which means that the program will "respect" the uri, but will display/respond as if it was the ZC default version of it or find the version that exists as the current_uri (value of 1).
You are correct that these type uris if desired to be used must be manually added. Or rather added from outside of the base code of the version available from this website.
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
mc12345678
The issue is that current_uri is set to false (0) which means that the program will "respect" the uri, but will display/respond as if it was the ZC default version of it or find the version that exists as the current_uri (value of 1).
You are correct that these type uris if desired to be used must be manually added. Or rather added from outside of the base code of the version available from this website.
Thanks, the 1 did it. Thank you.
Re: Ceon URI Mapping v4.x
I'm having issues with 2 of my 3 domains not working now that I installed CEON. I've narrowed it down to the htaccess file.
My hosting file structure is set up as:
/maindomain (zen files under this location)
/maindomain/_aa_domain_2 (2nd hosted website files)
/maindomain/_bb_domain_3 (3rd hosted website files)
My htaccess is:
Code:
ErrorDocument 404 /404.shtml
RewriteCond %{HTTP_HOST} ^www\.maindomain\.com$
RewriteRule ^/?$ "http\:\/\/maindomain\.com\/" [R=301,L]
## BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
# which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
# which are not covered by main file extension condition above
# Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite _aa_domain_2 directory
RewriteCond %{REQUEST_URI} !^/_aa_domain_2/ [NC]
# Don't rewrite _bb_domain_3 directory
RewriteCond %{REQUEST_URI} !^/_bb_domain_3/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
As it is above, the main domain works but the 2 other domains return:
Not Found
The requested URL /maindomain/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
If I comment out the last line, the other 2 domains work but it crashes the main domain:
#RewriteRule .* index.php [QSA,L]
I'm hoping someone can offer some assistance on the proper code to use to prevent this issue.
Regards
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
idc1
I'm having issues with 2 of my 3 domains not working now that I installed CEON. I've narrowed it down to the htaccess file.
My hosting file structure is set up as:
/maindomain (zen files under this location)
/maindomain/_aa_domain_2 (2nd hosted website files)
/maindomain/_bb_domain_3 (3rd hosted website files)
My htaccess is:
Code:
ErrorDocument 404 /404.shtml
RewriteCond %{HTTP_HOST} ^www\.maindomain\.com$
RewriteRule ^/?$ "http\:\/\/maindomain\.com\/" [R=301,L]
## BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
# which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
# which are not covered by main file extension condition above
# Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite _aa_domain_2 directory
RewriteCond %{REQUEST_URI} !^/_aa_domain_2/ [NC]
# Don't rewrite _bb_domain_3 directory
RewriteCond %{REQUEST_URI} !^/_bb_domain_3/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
As it is above, the main domain works but the 2 other domains return:
Not Found
The requested URL /maindomain/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
If I comment out the last line, the other 2 domains work but it crashes the main domain:
#RewriteRule .* index.php [QSA,L]
I'm hoping someone can offer some assistance on the proper code to use to prevent this issue.
Regards
There are other ways to do this, but because htaccess rules "inherit" upwards, your secondary site(s) are being affected by the htaccess in the primary site. Therefore, one way to eliminate that is to preclude the secondary sites from the rule testing such as the two lines added before which would need to be modified to suit your "scheme".
Code:
ErrorDocument 404 /404.shtml
RewriteCond %{HTTP_HOST} ^www\.maindomain\.com$
RewriteRule ^/?$ "http\:\/\/maindomain\.com\/" [R=301,L]
## BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{ HTTP_HOST} !^www\.othersite1\.com [NC]
RewriteCond %{ HTTP_HOST} !^www\.othersite2\.com [NC]
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
# which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
# which are not covered by main file extension condition above
# Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite _aa_domain_2 directory
RewriteCond %{REQUEST_URI} !^/_aa_domain_2/ [NC]
# Don't rewrite _bb_domain_3 directory
RewriteCond %{REQUEST_URI} !^/_bb_domain_3/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
mc12345678
There are other ways to do this, but because htaccess rules "inherit" upwards, your secondary site(s) are being affected by the htaccess in the primary site. Therefore, one way to eliminate that is to preclude the secondary sites from the rule testing such as the two lines added before which would need to be modified to suit your "scheme".
Code:
ErrorDocument 404 /404.shtml
RewriteCond %{HTTP_HOST} ^www\.maindomain\.com$
RewriteRule ^/?$ "http\:\/\/maindomain\.com\/" [R=301,L]
## BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{HTTP_HOST} !^www\.othersite1\.com [NC]
RewriteCond %{HTTP_HOST} !^www\.othersite2\.com [NC]
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
# which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
# which are not covered by main file extension condition above
# Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite _aa_domain_2 directory
RewriteCond %{REQUEST_URI} !^/_aa_domain_2/ [NC]
# Don't rewrite _bb_domain_3 directory
RewriteCond %{REQUEST_URI} !^/_bb_domain_3/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
Thank you. This worked like a charm.
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
idc1
Thank you. This worked like a charm.
Glad that it did. BTW, in review of your tagline:
Quote:
ZC 1.5.5
Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3
You should update to at least ImageHandler4 with using any ZC 1.5.x version of ZC. On a side note to that, the information in the tagline doesn't help anyone reading about issues (in the future) that you may post about. The tagline if updated will update throughout the forum website and no longer apply to the conditions referenced by any such post. This is also why it is requested to post the system conditions when attempting to address an issue. It helps in a number of ways: what currently may be the source of the issue, later what may have had a similar problem that relates to other software having the same issue and even better what resolved that issue.
Anyways, glad that the problem was resolved with at least one method of resolution. :)
Re: Ceon URI Mapping v4.x
I have a bucket load of errors in the admin check ceon installation.
A file requires 2 modifications to be made for it but none of the modifications have been made.
I have tried both github and ZC downloads and I get the same errors on 155e. I am using php 5.6.3. I have created the .htaccess file in root and pasted recommended rewrite rules. When I look at my zc150 site I have all of the referenced error files present. So after installing the latest CEON URI Mapping on zc155e, some of the files are completely missing when I run the check installation.
Is this not compatible with 155e? If not, are there plans to make it compatible with future ZC releases?
Thanks