Hello,
To start --GREAT mod and documentation. Mod was easy to set up and works fine(even for me), but I have one minor issue. I've read through all the threads but could not find solution to problem below. I hope I didn't overlook it.
I am having the problem Gerjan describe below where the who's online in tools displays something like:/includes/templates/browntemplate/images/TopPanelText1.gif, or rarely the correct updated path ending with /favicon.ico for guest shoppers and registered users. Mostly I cannot tell where they are on my site. Spiders do not have this issue, showing either original path or updated path. I tried the solution he came up with but no success. For me this is minor issue but it was fun to watch customers behavior live on my site. I've been through the threads and looked for any issues others are having but found none. BTW I'm very new to zen. Thanks for any advise.
My htaccess lokks like:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mrfancyplantsnursery.com/.$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mrfancyplantsnursery.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mrfancyplantsnursery.com/.$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mrfancyplantsnursery.com$ [NC]
RewriteRule .*.(jpeg|gif|png|bmp)$ - [F,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} !^/console.* [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]
RewriteCond %{REQUEST_URI} !/copper.* [NC]
RewriteCond %{REQUEST_URI} !/includes/templates.* [NC]
RewriteCond %{REQUEST_URI} !/googlesitemap.php.* [NC]
Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
Mike
PS I've seen it but forgot where--Where is the paypal link to buy you a pint or two?
Gerjan:
Thank you for answering. Sorry for my english. It's not perfect and I sometimes have difficulties explaining (technical) problems. Also, I'm not an expert. I observe, read, ask and copy. Sofar it works :wink:
That's the problem... it only links to the template directory, nomatter what page guests and customers are looking at. Strange thing is that spiders like googlebot don't have this problem, they show the original url/link. This problem started right after I installed uri mapping.
But... aftersome research I added this rewrite:
RewriteCond %{REQUEST_URI} !/includes/templates.*
Now it is solved (for as far as I can see) and CEON uri mapping is still working ok. The link that guests are looking at are also the links that are created by uri mapping. Like "bk_fortalit_braadpan_24cm" instead of "index.php?main_page=product_info&cPath=5&products_id=560".
When I started designing my template 1,5 year ago I have added a menu from Apple Zen Template and one month ago I added a flash header. I think the menu is causing the problem I descriped. If you want to take a look at my site : Pannenland.nl
The only problem to solve now is that my "home"-button redirects to a category instead of the homepage. But that will come soon.
Hope can do something with this information for future questions en development.
Best regards, Gerjan