Did you upload the modified core files to the renamed admin folder?
Also did you adjust your htaccess accordingly?
Printable View
The admin folder was renamed about six months ago, so yes, all the necessary files were uploaded there.
And the .htaccess file was adjusted back then as well.
Hi,
Thanks for helping Alan out, it's nice to have help! :)
No, the admin is completely separate from the catalog, the rewrite rule condition for the admin is only there to make sure you can continue to access the admin, it is there to prevent the admin being blocked by the rewrite rule. What the admin directory is called is of no significance.
Honestly if it's not the html_output.php file being incorrect I don't know what's wrong. I'm afraid it would probably have to be debugged manually (i.e. PHP traces temporarily added to the code).
Sorry I don't have better news than that!
All the best...
Conor
ceon
Hi,
Yes, if you duplicate rather than link the product, you can enter the exact same URI for each product (say "www.site.ext/history-of-ancient-rome.html"), but this means that when a customer browses your site they will be moved to the same category.
I.e. if a customer is in /books/history/ and they click on the product their context on the site will become /books/archaeology/ and if they're in /books/history/ and they click on the product their context on the site will also become /books/archaeology/.
So they'll get to see the product and it won't be duplicated but if the customer went to the product via /books/history/ they'll no longer be in the history subcategory but the archaeology subcategory.
There is no way around this.
By default, the module adds a cPath for any linked product, (which makes it a unique URI in google terms I think) but both the "master" product and the "linked" product can still have the same base URI:
www.site.ext/history-of-ancient-rome.html
http://www.site.ext/history-of-ancie...html?cPath=2_3
The module is as lightweight as can possibly be given its featureset. It can require as little as one or two SQL queries to perform its job. I've no interest in quantifying that as I believe in making software functional first, easy to maintain second and efficient third. I believe the module meets all 3 goals as well as it can!
All the best...
Conor
ceon
Hi,
What would be the best approach (if one exists) to periodically opening and closing via automation, every product and category as if a user were doing it?? The idea would be to create URL's for anything that had yet to be written. I am thinking that if the URL field is empty, that it would be safe to autogenerate a URL so the automation of "walking the product tree" would not overwrite existing URLs.
I use a front end for the store but currently have to then go in an "touch" every product to generate URLs, even it is just a load and store... the hard part is finding them all.
Could this be done via query or a script? Could whatever gets done when the product is updated be done as a result of a "for each product where URL is empty" command?
Thanks and kind regards,
B Herd
Hello Conor,
when does uri_mappings_manager come out?
I am installing this mod for a customer on 1.3.8a, but am having issues with the .htaccess file. The directory is located in /zencart and the admin directory is /admin. I receive a 500 server error when this is turned on. Here is what I currently have in the .htaccess file:
[SCR]RewriteEngine On
# Don't rewrite any files ending with .[xxxx], except for scripts/HTML files
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} \.(php|xml|html|htm|aspx)$ [NC]
# Only rewrite pages inside the zencart directory
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
# Don't rewrite payment pages/callback handlers
RewriteCond %{REQUEST_URI} !/zencart/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/realex_remote_3d_secure_iframe.php.* [NC]
# Handle all other URIs/file types (php|html|htm etc.) using Zen Cart (index.php)
RewriteRule (.*) zencart/index.php?%{QUERY_STRING} [L]
[/SCR]
Sorry, here is what is in the file:
RewriteEngine On
# Don't rewrite any files ending with .[xxxx], except for scripts/HTML files
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} \.(php|xml|html|htm|aspx)$ [NC]
# Only rewrite pages inside the zencart directory
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
# Don't rewrite payment pages/callback handlers
RewriteCond %{REQUEST_URI} !/zencart/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/realex_remote_3d_secure_iframe.php.* [NC]
# Handle all other URIs/file types (php|html|htm etc.) using Zen Cart (index.php)
RewriteRule (.*) zencart/index.php?%{QUERY_STRING} [L]
Here is what my host said about the .htaccess file:
You are seeing this error because your .htaccess rules are causing too many internal redirects. Here is what I found in the Apache error logs:
[Sat Sep 05 20:24:45 2009] [error] [client 64.81.143.26] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat Sep 05 20:24:45 2009] [error] [client 64.81.143.26] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
You should have a look at the rules you added, and trim them down so as not to cause this internal loop.
Thanks to my techie ex-husband :clap:, the problem of products not being added to the cart has been solved. Basically, it was the .htaccess file.
On the working site, the path is workingsite.com/zencart/files
On the bad site, which is set up as an addon domain resolving to a folder called zencart, the path is badsite.com/files
In the .htaccess file, however, the bad site was set up as badsite.com/zencart/files or variations thereof. And that's why it wasn't working.
Just thought I'd post this in here because a couple of other people have mentioned having this same problem, so at least this is another idea to check out in the hope of finding a resolution.
I don't quite understand what you mean. When I turn on the .htaccess file all I get on the entire site (except admin) is a 500 error.
Sorry, but my information about the .htaccess file had nothing to do with your error. :no:
It was a followup to a problem I'd posted earlier in the thread about products not being added to the shopping cart when they had an updated URL using this module.
I have many existing eZpages (prior to using Ceon mod) that need a URI generating for. There's nearly 500 so going into each one to have it automatically generated isn't an effective option.
Is there a way to simulate this, perhaps with SQL?
Great mod by the way!
Any help will be appreciated
Hi Jesse,
The rewrite rule you have posted is from an old version of the module. Please download and install the latest version.
The rule you probably want is:
RewriteEngine On
# ONLY rewrite URIs beginning with /zencart/
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zencart/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencart/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
All the best...
Conor
ceon
Dear Ceon,
Thanks for your plugin! I am a green hand. My .htaccess conten is:
Code:RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} \.(html)$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
and my zen cart study site:
http://shop.cheapglasses123.com
I have some problems with the following urls:
help please!Code:more pages
http://shop.cheapglasses123.com/plastic-or-acetate-glasses?&sort=20a&page=2
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/index2.html
how to add .html
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0084-plastic-glasses
contact us
http://shop.cheapglasses123.com/index.php?main_page=contact_us
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/reviews?&page=2
add this to my cart
http://shop.cheapglasses123.com/index.php?main_page=shopping_cart&page=2&products_id=5
product details
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses?page=2
read the review
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/review?&reviews_id=2
write a review
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/add-a-review?page=2
More Information
http://shop.cheapglasses123.com/index.php?main_page=page_2
Many thanks.
Dear Conor,
Thanks for your plugin
i want to rewrite url
www.domain.com/index.php?main_page=login
to
www.domain.com/login
but i can't find where to this?
can somebody help me???
Hi,
Most of the URIs you posted are working fine. The extra things like &reviews_id are necessary otherwise Zen Cart doesn't know what review to show.
As for adding .html.. why would you want to? Time Berners-Lee recommends you don't!
If you do, then you must manually add .html to the end of each of your URIs, it isn't added when you auto-generate a URI.
Glad you like the module!
All the best...
Conor
ceon
Hi,
Please read the instructions!
The first part of the configuration section entitled "Specifying the current URI Mapping for any other Zen Cart page" is what you want.. obviously "main_page" for you should be "index".
Glad you like the software!
All the best...
Conor
ceon
Dear Conor,
Would you please tell more details on how to do please?
One more thing, after I install the MOD of EZ-Pages Meta Tag Fields, your MOD does now work for EZ-Pages.
When I reinstall your MOD, then the MOD of EZ-Pages Meta Tag Fields does not work again.
Hi,
Yes, when you are using two modules which have modified the same core file you need to manually merge the changes.
You can find out more about what to do in the FAQs for the URI Mapping module, I've made this as easy as possible for you to do. Try starting with the EZ-Page Meta mod (whatever that is! ;) ) 's modified ezpages.php file and merging the URI Mapping changes into it. I know for a fact that the changes are very clearly marked in the URI Mapping version but they may not be marked well in that other mod, I don't know.
All the best...
Conor
ceon
dear Conor,
http://shop.cheapglasses123.com/plastic-or-acetate-glasses?&sort=20a&page=2
http://shop.cheapglasses123.com/index.php?main_page=contact_us
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/reviews?&page=2
http://shop.cheapglasses123.com/index.php?main_page=shopping_cart&page=2&products_id=5
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses?page=2
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/review?&reviews_id=2
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/add-a-review?page=2
http://shop.cheapglasses123.com/index.php?main_page=page_2
how to let ceon mapping working please. tks.
Sorry, I really do not know how to resove the dynamic urls.
One more thing, when one product to two categories, how to mapping to 1 url only?
For example,
http://shop.cheapglasses123.com/fb0131-bendable-glasses?cPath=3
http://shop.cheapglasses123.com/fb0131-bendable-glasses
I put product fb0131 under 2 different categoris, then the product has 2 urls, how to let http://shop.cheapglasses123.com/fb0131-bendable-glasses?cPath=3 also map to http://shop.cheapglasses123.com/fb0131-bendable-glasses
many thank.
Hi,
I'm afraid that I don't see the point in talking through the documentation.. please read it to get the answers you require, it took me weeks to write the documentation!
You can't. Zen Cart requires that each "linked product" has a different cPath.. the only way to have that happen is to append the cPath to the linked product's URI.
All the best...
Conor
ceon
Dear Conor,
I have used ultimate_seo_urls for www.cheapglasses123.com , and it can meet my demands, for example, the product "FA0425 Plastic Glasses", its main category is Pastic Glasses, but you can find that the product has been put under 4 categories:
http://www.cheapglasses123.com/plastic-glasses
http://www.cheapglasses123.com/glass...ween-usd-30-59
http://www.cheapglasses123.com/women-glasses
http://www.cheapglasses123.com/full-rim-glasses
the product "FA0425 Plastic Glasses" under each category has the same url: http://www.cheapglasses123.com/fa0425-plastic-glasses
Have a try please.
Hi,
You should go back to using it if that's the way you want things to work.
URI Mapping will not be changed to accommodate you as your situation is different from everyone else's.
If the cPath isn't added to a linked product's URI then the "context" on the site is lost.. the customer will not be in the same category they viewed the "linked" product in.
Your site doesn't use the context, you have no breadcrumbs or category previous/next buttons, which is why this doesn't affect you with Ultimate SEO URLs... if you did use the context on the site then you'd have exactly the same problem with Ultimate SEO as you do with Ceon URI Mappings.
I'm sorry that URI Mappings is not for you.
All the best...
Conor
Hi Conor,
First I want to thank you again for the outside work you did on my son's site. I would have never figured out all those errors on my own!
I have one question that maybe can be answered here in the forums. I'm looking at my Google account, and I have a bunch of crawl errors (13). I have maps most or all of these pages, but they are not going there if you click these links.
For example, if you click http://www.chickensonline.com/includ...ippinginfo.php (which Google did) you get a 404 error, but I mapped the shipping page (I thought), and it goes to http://www.chickensonline.com/shipping.
Should I map these pages with errors too or just add them to my robots.txt file? I've attached a file that shows all the Google errors.
Thanks for any help!
Karen
P.S. On a side note, if there are any chicken enthusiasts out there that would like to help get our new chicken forum off the ground (we need posts about chickens to get it started), it's at http://forum.chickensonline.com. Not to be off topic...
Hi Karen,
No problem! Glad the site's working now! :)
You've mapped the shipping page from /shipping to the dynamic Zen Cart URI (e.g. main_page=shippinginfo) but the link you have above is some sort of old static page. If you want to link it to your actual shipping page you have to manually map it.
You can add it as a "historical" URI by adding a record to the URI Mappings table, with
/includes/languages/english/shippinginfo.php
as the "uri"
current_uri should be 0
main_page should be shippinginfo
That should redirect anyone visiting the above URI to the new URI for the shippinginfo page.. i.e. /shipping
You'll need to make sure your URI rule allows the use of .php:
change
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
to:
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} \.(php)$ [NC]
All the best...
Conor
ceon
Dear Ceon:
Thanks for your so nice module, but it is very slow when use to a website which more than 10000 products. it will be more than 50,000 records in uri fileds.
My server is high quality, xeon dual core, 4g memery.
it takes more than 4 secs even one visitor online on category page though i cut many unused function.
in database no index and module no cache function. Would you please offer a better idear for the huge site?
Then i think it is very perfect.
Best regards!
Hi,
I think you must be posting on the wrong thread. The URI mapping module can use as little as one SQL query per page load and at most 2 queries per page load. It then uses one query per link generation. That can't possibly be heavy. The module is, quite simply, lightweight.
If you are having slow-downs it's nothing to do with this module. You must have set up your server wrong.
All the best...
Conor
ceon
Hi Ceon
I'm a Zen Cart newbie so hopefully this isn't too stupid a question....
I've installed your module and followed teh instructions but when I try to access the module for the first time through my admin pages I get this error:
The requested URL /my-admin-folder/FILENAME_CEON_URI_MAPPING_CONFIG.php was not found on this server.
(I have replaced the actuual name of my admin folder with with 'my-admin-folder' above and in the htaccess example below)
My Zen cart installation is in the root and I have created a .htaccess file with the following lines as per your configuration instructions:
## Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/my-admin-folder.* [NC]
But I'm not getting anywhere.
I'm guessing that I've mucked something up - any ideas what I should look at?
Thanks
Matt
Hi Matt,
You've missed uploading at least one of the files. You should reupload them. If you still have problems then it's probably your FTP software.. in which case I'd suggest downloading and using the free FireFTP extension for Firefox.
The file you are definitely missing is
admin/includes/extra_datafiles/ceon_uri_mapping_filenames.php
You may be missing others.
Hope you like the software!
All the best...
Conor
ceon
Hi
I've just checked and ceon_uri_mapping_filenames.php in definitely in my /httpdocs/my-admin-folder/includes/extra_datafiles
I'm using cuteFTP and don't normally have problems with that.
Do I need to take into account that my files are all in the httpdocs folder?
Thanks
Hi
Sorry to be a pita.
I've re-uploaded everything and double checked all the files are where they should be.
Now I have a different issue, in as much as my admin pages are blank :)
I have updated my htaccess file to this:
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/my-admin-folder.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
Any ideas?
thank you
Matt
I don't think so. I use zen cart more than 1 years, and know a few codes and server information. and i like ceon uri very much. check carefully, and test many times. i can make sure the heavy query issue. would you please check it in example which 10000+ products in your pc? Thanks very much.
Hi Conor,
Thanks so much for the Ceon URI Mapping module -- I far prefer the control your approach gives me to an automated URL generator.
I do have one question about translated pages -- I have set up several mappings to spanish (e.g. http://www.mydomain.com/spanish/my-product.html), but if I go straight to the mapped URL, the page is in english (my zen cart default language). Is this the correct behavior for the module? If so, shouldn't the behavior be that the URL over-rides the default language -- otherwise, search engines will see the same content for both www.mydomain.com/product.html and www.mydomain.com/spanish/product.html.
Thanks in advance, and thanks again for a great contribution!
Scott
Hi,
I'm glad you like it! :)
You're right.. that would definitely be logical and is the way I'd expect it to work. I would therefore consider the current behaviour a bug - thanks for bringing it to my attention.
I'll update the module to automatically reset the current session's language ID to that matched by the URI mapping (if it matches one language only).
If the URI mapping is the same for several languages, then I'll make it that it uses the current session's language, if that is one of the languages the URI mapping matches, or falls back to the default language for the site.
I think that sounds like the correct behaviour?
All the best...
Conor
ceon
Hi there,
I installed the Ceon URI module and it is working, but I only have one problem.
When I have the module on, images are broken in my product page, but also the language flags in the sidebox. When I turn the module off the images are shown good.
Could this be something to do with the rewriting in .htaccess file?
This is my .htaccess file:
RewriteEngine On
# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/shop/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/shop/mypanel.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/shop/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) /shop/index.php?%{QUERY_STRING} [L]
I couldn't find the answer in the posts, so I hope someone knows a solution for this.
Hi,
I don't know what you've done wrong to stop the images showing. The rewrite rule you've listed wouldn't block images unless your images didn't end in .gif/.jpg etc.
However, the last line of the rule appears wrong. I think it should be:
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
All the best...
Conor
Hi Conor,
Thank you for your correction.
It is solved now!
It was because of worldpay. Because worldpay had the <href base> tag disabled. Therefore urls had to be made for the stylesheets etc. into absolute urls to make the callback pages working with Worldpay.
Worldpay has just enabled the <href base> tag again and i put back the old file.
Now it is working perfectly, both :smile:
Hi,
Ahh, when you said you had "disabled" the module I didn't think you meant you'd removed the htaccess file (the module has an actual Enable/Disable configuration option).
I would have caught on about the base_href thing otherwise.. I should think of it sooner in future! :)
Glad it's working and you like the software! :)
All the best...
Conor
ceon
Hi,
I installed this module successfully and am now able to update the URI Mappings for my products. Thanks!
I cannot find the same text fields for Ezpages. I go to tools/ezpages and do not see the text fields for entering URI Mapping.
I would appreciate any help,
Thanks.
Hi,
A new version of the module has been released with two bug fixes. Upgrading is easy as no changes have been made to core files so it is recommended that everyone upgrades. However, the changes made will affect very few people so upgrading isn't essential.
From the revision history:
[BUGFIX] When a URI was being mapped to a page for a different language from the default/current session's language, the module wasn't changing the language for the session to the language being mapped to.
[BUGFIX] Certain Zen Cart links to the product info page(s) don't use the category cPath variable like all the other links to these pages. Module updated to set this variable if it isn't set and therefore prevent these links breaking.
The first fix applies only for sites that use multiple languages and the second for sites which display a category image on the product info page (which is to say, not many sites!).
The new version can be downloaded from our site now:
http://dev.ceon.net/web/zen-cart/uri_mapping/downloads
It will also be available from the downloads area shortly.
Enjoy!
All the best...
Conor
ceon
Hi Conor,
Just started another Zen Cart project earlier this week, and made it a point to install this beautiful project of yours first.
Not sure if people say this enough, but thank you for your ongoing work with Ceon URI Mapping. I've been using this on my primary site for about (5 months?) so far, and it has never let me down once. I feel as though no Zen Cart installation is complete without this now.
Looking forward to the URI Mappings Manager, keep up the great work!
What do I do about pre-existing pages that exist with Zen Cart?
For example, Featured Items and New Items.
By default, my URI looks like this:
cart/index.php?main_page=products_new
I'd like it to be more like cart/new_products
Thanks :smile:
I figured it out... I guess for anyone that's not sure, here's a more practical example for you:
Using phpMyAdmin (as suggested, in Step 9 of the configuration section in the userguide) - Navigate to ceon_uri_mappings
For URI, put in what you want the URL bar to say. For instance, I have ZenCart installed in a subfolder, called cart:
example.com/cart
So, lets say I want to do "All Products", which is a default page within Zen Cart
My URI would be /cart/all-products
language_id is 1 (for me)
current_uri is 1
Main Page:
If you go out to your page and you click on "All Products", you want the very end of what's on that.
For example:
example.com/zencart/index.php?main_page=products_all
in "main_page", you would enter products_all
query_string_parameters, associated_db_id, alternate_uri, redirection_type_code all stay default, and date added is todays date....
Wow talk about timely.. Nate your instructions came at a PERFECT time.. I mean no offense to the mod author, but these directions were a lot more straightforward and clear for me..:smile:
All in all, I am loving this add-on.. It took a little time for me to get all the URIs setup, but basically this install went off without a HITCH.. Products, Categories, and EZ Pages are all done.. I created a script to generate the remaining URIs for the Zen pages, and then moved on to QAing the site to look for the preverbial chink in the armour..:laugh:
So far I have been banging away at the site to test all the links and to make sure that it doesn't break anything. So far this has been PERFECT.. Login works, notifications from the shopping cart works, the checkout process work.. Can't complain.. Of course the "URI Mappings Manager" will make this process even easier. So I am looking forward to seeing that released, but for now I'm just going to use my SQL script to cover creating all of Zen URIs until then..
I spent the last two days in SEO configuration hell, so this was truly my last stop on the SEO train..:laugh:
One question though for conor.. I cannot get the URIs I created for these two pages to work.. Is there something I am missing??
http://clients.overthehillweb.com/ha...n_page=reviews
main_page = /hairisle/reviews
URI = product_reviews
http://clients.overthehillweb.com/ha...in_page=gv_faq
main_page = /hairisle/gv_faq
URI = gift_certificate_FAQ
Hi,
I understand that an example or two would help in the docs. I'll do what I can to add examples to the next version. It's hard to find time/motivation to work on the documentation for a free module.. I don't think anyone likes writing docs? :)
They should be
main_page = reviews
URI = /product_reviews
main_page =gv_faq
URI = /gift_certificate_FAQ
Glad you like the module!
All the best...
Conor
ceon
Hi,
That's really, really good of you. It does definitely make a difference hearing such positive comments.. thank you very much indeed for taking the time to post them! :)
Working on it.. thanks again! ;)
All the best...
Conor
ceon
I hear you.. I just assisted a member here with re-writing the readme docs for Image Handler 2. It took a few passes to make sure we had everything in the docs clearly spelled out.. As a software BA I write specification docs regularly.. While I love my job, and I am a good writer, the writting aspect of my job I've always referred to it as a "necessary evil"..:laugh:
:blush:Okay.. I was SLEEPY as heck when I got down to those last few pages.. As SOON as I saw your answer i was like "I knew that..":laugh::laugh:
Love this add-on!! I love having full control of everything.. Now if only I could get WordPress permalinks to work as nicely..:laugh: After this exercise I know that the next store I build should include this mod from the onset so that the URI creation happens as categories, product, and EZ Pages are added..
Now that I've got my first Ceon URI install under my belt, I am moving on to install this for a client who is now asking for SEO functions on his site.. He has LOTS of products and categories, and I know the initial setup is going to be painful for him, but once he goes through all of his products, it'll be easy peezy after that.. (Did I mention how much I love this add-on??:hug:)
I understand Conor. For what it's worth, your instructions did help me to figure things out. I just had to fiddle around with it before I got it right, and I figured a more real world example of what I just went through would help some one out. My example is lengthy, but you're free to C&P all you want :yes: :D
Oh no doubt.. Conor's very detailed instructions were helpful as heck!! Especially the instructions on how to setup the .htaccess file.. All those Apache commands give me a headache, and I truly admire folks who know how to wield that very big stick..
Conor's directions on how to set that all up were MILES more helpful than any topic on the net I've seen.. As an example: the instructions for how to exclude a folder were on point to help me make sure that Ceon did not apply itself to my WordPress directory..:clap:
Hi,
I am using other encoding - Not UTF-8 in other language (Thai)
Can I use the URL Rewrite ? I try the URI Mapping it show as Blank space...
Hi
I've successfully installed the module and have one question :)
I temporarily want my default homepage to be index.html rather than my zen cart homepage which is index.php.
I've added 'DirectoryIndex index.html index.php' to my htaccess file but unless I remove all the rewritecond rules it doesn't have any effect.
Is it possible to have both the Directory index rules and the rewritecond rules work?
Thanks
Hi,
The section of the docs you want is
Modifying the rule to allow URI mappings to be used which end with a particular file extension (e.g. “.html”)
Basically, change your rewrite rule from
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
to:
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} \.(html)$ [NC]
All the best...
Conor
ceon
Hi,
Sorry read that wrong. Ignore my last post.
You must have done something wrong. The module with its example rule doesn't rewrite .html addresses.
Check that you are using the latest version of the module - 3.2.4 - and make sure you are using the example rewrite rule from it. Older versions of the module did indeed rewrite .html files, but this is no longer the case with the examples in later versions of the module's documentation.
All the best...
Conor
ceon
Hi,
At least you get paid for it! ;P Unlike a lot of OS software developers I do what I can to write good docs.. I really do hate the process though.. months of work... ugh! :)
Yeah, I'd a feeling it was something like that! :)
Thanks for the nice comments! I haven't used WordPress before but I wrote the URI Mapping to work the way I wanted it to work and learnt a lot about things I knew little/nothing about previously - transliteration, encodings etc. - it's good to hear it works better than something which has loads of developers! ;)
Thanks again for the nice comments.. it's good to see people really like the software!
All the best...
Conor
ceon
Hi,
The module has extensive support for character encodings. It has full support for iso-8859-1/us-ascii and utf-8/utf7-imap. For any other encodings it attempts to use iconv and converts character sets into UTF-8 for internal processing and transliteration.
If this isn't working on your server then either you don't have a working iconv setup or the THAI encoding you are using simply won't work with the String handling this software uses. In which case you should use UTF-8 on your site or abandon any idea to use the module.
All the best...
Conor
ceon
Hi there,
I'm encountering 404 Not Found page (that says The server can not find the requested page) when I log in via the login sidebox on those product pages with URI mapping. It seems SSL URI mapping links (e.g., https://.../diecast/1-72-f-a-18-supe...-diecast-50179) are inaccessible.
How can I get this fixed?
Many thanks,
Brian
Hi,
I am trying to change the encoding to UTF-8 from TIS-620.
It was a PAIN. Now I change all the database table and field to UTF, change the header in the languages files but It not working and show as... http://fashionbyim.com/shop/
Hi,
Zen Cart doesn't support UTF-8 as standard. Have you "installed" the following module? It sets the database handler to using UTF-8, which is essential and the lack of this may be causing your problems:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=601
Hope that helps!
All the best..
Conor
ceon
Hi,
It seems like you have a problem with your SSL configuration value for HTTPS_SERVER and/or the login sidebox is trying to use relative instead of full URIs.. no URI mapping software can use links which use "../" - it makes no sense!
You always need to use full paths as Zen Cart is no longer access from /shop/index.php (for example) but from things like /category-name/sub-category-name/product-one
Hope that helps!
All the best...
Conor
ceon
I don't editing the files and convert all the table to UTF-8 but still no luck T_T
Hi,
What do you mean by "still no luck". You haven't exacxtly explained what's going wrong!
If you are getting a blank page then please search this forum for "blank page" and you'll see some steps you can take to find out what error is occurring. It could be this is nothing to do with encodings?
All the best...
Conor
Hi Conor,
Thanks for your quick reply. Sorry that I didn't state it clearly. Actually I can access to "http://www.bnamodelworld.com/diecast/1-400-australia-qantas-a330-200-vh-ebb-diecast-55575?zenid=fd30092e51bda250d82843b582ccb83e" but not to the SSL link "https://web67.justhost.com/~bnamode1/diecast/1-400-australia-qantas-a330-200-vh-ebb-diecast-55575?zenid=fd30092e51bda250d82843b582ccb83e" as an example.
Thanks again,
Brian
Hi Brain,
You need to buy and install a SSL certificate for http://www.bnamodelworld.com/ instead of trying to use two domains, with the SSL domain using a subdirectory.. that won't work.
All the best...
Conor
ceon
Sorry,
Now I can use the UTF-8 as my encoding but I think I have to convert all of the languages files.
The problem is when I enter thai language in the URI Mapping fileds. It show as "blank" such as http://fashionbyim.com/shop/
Hi,
That should be easy enough, although a little time-consuming.
I'm afraid I've no idea what you are trying to describe here. Please give a full and detailed description of the problem.. all the steps you are taking, what you are seeing and what you expect to see.
All the best...
Conor
ceon
ฺีBut it working if I directly insert the uri to zen_ceon_uri_mappings table.
but when I click the link it show "Page not found"
I LOVE the requirements interviewing process.. I love mapping out process diagrams.. But having to put the document all together.. Not so much.. I may get paid for it, but it's frustrating to put in weeks of blood sweat and tears only to have people not read what you wrote at all:frusty:.. (it happens.. another occupational hazard:laugh:)
Anyway GREAT job on Ceon.. Expect a donation VERY soon!:smile: I've also been looking at your other apps.. Your MONDO shipping app looks like something a potential client and I were just speaking of..
Sorry for my English.
I am trying to write a full description here.
Now UTF-8 Problem is resovled.
The problems are...
1.When I enter thai language in the URI Mapping field (Back-end) for the category it become "blank" so the URL show "http://fashionbyim.com/shop" which shuold become http://fashionbyim.com/shop/my-enter-uri
2.I tried to edit the table zen_ceon_uri_mappings directly via phpMyadmin the URL show correct as http://fashionbyim.com/shop/my-enter-uri BUT when I click the link it show page not found error.
Thanks
Hi Brian,
Sorry about the misspelling of your name above.. although that's probably the best typo you could want! :)
I'm afraid you don't have a compatible certificate. You have a shared certificate. You need to buy your own. The address you showed me above has an extra directory name at the start, over the standard site's address : ~bnamode1/
You cannot use that. It will not work.
You should contact your host to purchase a SSL certificate or install any previously purchased certificate so that the only difference between your SSL and normal addresses is the s in https:// versus http://
All the best...
Conor
ceon
Hi,
If the URI mapping isn't being saved correctly when you are entering it in the product page and going to the product preview page then it definitely won't work if you try to go to this URI on your site!
I understand that you are also trying to enter the URIs by hand. You may be messing up when entering these, I don't know I'm afraid.
The main problem is the fact that it's not saving in the first place, and in this regard, I don't know what's wrong with your site.
Sorry, there's nothing else I can think of to say to you to do. This would have to be debugged using trace calls by a PHP programmer.
All the best...
Conor
ceon
Thanks The site messed as you said.
I am rolling back all the process T_T
Hey Conor,
Thank you for all your hard work and support for this mod. I have this installed on my test environment, and the functionality is certainly there and the custom mapping is working as well as the manual.
The only issue I'm having is that my URIs are still in standard zen format in the categories sidebox and then redirect to the custom ones after clicked. Not sure if I missed a file or something but I double checked a few times.
I saw some similar issues in the forum already but they seemed to be for ez-pages and not standard category pages. Let me know if you have any advice..
Thank you much!
-Bryan
Hi Bryan,
I'm glad that you like the software!
It sounds like you might have forgotten to copy across the modifications froQuote:
The only issue I'm having is that my URIs are still in standard zen format in the categories sidebox and then redirect to the custom ones after clicked. Not sure if I missed a file or something but I double checked a few times.
I saw some similar issues in the forum already but they seemed to be for ez-pages and not standard category pages. Let me know if you have any advice..
includes/functions/html_output.php
from the modified_core_files folder.
Copy the appropriate file for your version of Zen Cart from the distribution into your store's includes folder and the Zen Cart link generation functions should use the URI mappings.
Hope that helps!
All the best...
Conor
ceon
Conor,
That was certainly it. Only one i forgot to move over and surely thought i did hah. Thank you so much for pointing that out, and thanks again for all your hard work on this!
:oops:
-Bryan
Hi Bryan,
Thought it would have been! Glad you like the module! :)
All the best...
Conor
ceon
Hello there,
How do you reset this module? What I mean is, I created a folder and named is "Accessories" but then decided to change it to "Merchandise" but when you click on the link, it still says "Accessories". How can I change it to the correct one?
Thanks
Hi,
Edit the category and regenerate its URI or enter the new one as "/merchandise".
That'll then become the "current" URI and anyone who visits "/accessories" will be redirected to "/merchandise".
All the best...
Conor
ceon
Hi,
It must have been there before or you couldn't have set the URI in the first place!
You'll have to reinstall the module and try again.
All the best...
Conor
ceon
It is there for the products but not for the category. It is working on the site...you can check on www.playnippon.com. All products are SEO and some of the main categories as well. The categories on the sidebox doesnt though...
Should I still reupload all files and run the sql again?
Hi,
Then as I said before you must have had it there before. Please reupload the files for the module. There is no SQL file to run for the module, you must have remembered that wrong.
All the best..
Conor
ceon
Sorted. The category file has been overwritten. Thanks for the help.
Hi,
Knew that was it! ;)
Enjoy the software! :)
All the best...
Conor
ceon
Ceon, thanks for this amazing add-on. I haven't installed it yet. I am trying to be careful when modifying something in an operational website, so I have a question that will help me plan accordingly:
In step 4 you instruct to "Add the Rewrite Rules to Apache". Now, in my webhost there is only one .htaccess in ~/public_html but I actually have two stores:
- ~/public_html/store - the operational store exposed to the world.
- ~/public_html/test-store - where I test dangerous changes before applying them to the operational store.
My questions is how do I apply step 4 to the test-store only without affecting the operational store?
Thanks.
Re-read the ENTIRE section that covers how to setup the .htaccess file for Ceon URI.. It is VERY well covered... specifically how to set up the .htaccess for a specific directory within the root.. (each of your stores resides in a different directory within the root..)
Hi,
It's not.. the instructions are for the module, not for how to set up websites! There are plenty of guides on the net about htaccess files and rewrite rules.
This also isn't a "pre-set up" thread, I think you're expecting a bit much for a free distribution.
Nevertheless, the answer you are looking for is that you create a .htaccess file for each store and put these files in the individual stores' directories. Your server will check the .htaccess file in the root directory first, then it will check any subdirectories to see if they have .htaccess files.. so the .htaccess file for the appropriate store will be loaded when the webserver attempts to open /store or /test-store (i.e. /store/.htaccess or /test-store/.htaccess).
As both stores are in a subdirectory of the root of the site, you should use the appropriate rewrite rule example for stores which are in a subdirectory.
As long as your root .htaccess file doesn't interfere with the subdirectory .htaccess files, everything should be smooth enough.
All the best...
Conor
ceon