Don't know where Dreamscape's gone, but until he returns, attached is a handy pack of all the fixes UP UNTIL 29_03_2007 for the 3.0.0.b1 release
Printable View
Don't know where Dreamscape's gone, but until he returns, attached is a handy pack of all the fixes UP UNTIL 29_03_2007 for the 3.0.0.b1 release
So does the Ultimate SEO work with Zen Cart EZ Pages? Do I need to add or change something to make it work with them? Zen Cart at: http://horse-logos.com
jonisolis,
The new beta works just fine with them.
It might be you need to specify a chapter, but I seem to remember when I tried that it defauted to zero, so the above problem might be a local problem.
thats the one:
seo_urls_3.0.0-beta1
Dreamscape say do not use it on a live site... I am.
The old option in the download area is not supported:
http://www.zen-cart.com/index.php?ma...roducts_id=231
The Beta 1 works fine with the EZ Pages, or at least I haven't had any problem with the EZ Pages. But that is because the core ez pages header and footer doesn't use the zen_ez_pages_link() function in /includes/functions/functions_ezpages.php.
I still wasn't able to figure out why the zen_ez_pages_link() function doesn't work, but the EZ Pages headers and footers do work without a problem.
The cart that is having the problem was built from the ground up starting with 1.3.7, and the only version of Chemo's I have used was this BETA 1 version of v3. So there isn't any left over rubbish from v2.
Strangely, EZ Pages SEO links don't even work if I try to generate them directly using zen_href_link(), but somehow, someway, they ARE working on the header and footer, and I am still at a loss for whats happening, having gone through both the footer code and the zen_ez_pages_link() function.
For now, I have many more important things I have to shift my focus to at this time, but will turn my attention back towards it when I get some more time.
Thanks Kelvyn for the cumulative update there, its a real time saver for everyone involved. I'll go through and patch things up and see if that affects anything.
I need help with rewrite condition/rule for all the old index product music type. The old version 2.103 was modified to support product music type but the beta version support product music type out of the box.
I'd like to rewrite this:
Which generated some like this: http://www.clevershoppers.com/alive-...d-pmi-180.htmlCode:RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L]
To use the new rewrite function.
I tried the following code using the logic in the Guide but it doesn't work.
Code:# Music Product Type Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L,R=301]
If you put rules to send old 2.1 urls to reg. ZC urls to be rewritten as 3.x urls, make sure you put them *before* all other rules, including the 3.x rules. I went to your site and noticed that *-pmi-([0-9]+).html is being picked up by some other rule, which would explain why it is not working, because it isn't getting a chance to run. ;-)
If you have several rules to change 2.1 to 3.x, you'll have to play around with the order to get it right. For example the generic 2.1x to 3.x rule should be the last 2.1x to 3.x rule, but still come before the 3.x rule.
Dreamscape,
Can you please help me understand the logic because moving things around worked. This is my original .htaccess
This is my new .htaccess based on your input (which now works):Code:RewriteEngine On
RewriteBase /
# From Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
# Music Product Type Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L,R=301]
# EZ Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteRule ^page.html$ index\.php?main_page=page&%{QUERY_STRING} [L,R=301]
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php/$1 [L,QSA]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.clevershoppers\.com [NC]
RewriteRule (.*) http://www.clevershoppers.com/$1 [R=301,L]
Why does moving the old music rewrite rule to the top worked? Do you see anything else I should modify in .htaccess that I might not be aware of? I am just interested in learning!Code:RewriteEngine On
RewriteBase /
# Music Product Type Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L,R=301]
# From Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
# EZ Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteRule ^page.html$ index\.php?main_page=page&%{QUERY_STRING} [L,R=301]
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php/$1 [L,QSA]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.clevershoppers\.com [NC]
RewriteRule (.*) http://www.clevershoppers.com/$1 [R=301,L]
Thanks!