Zen Cart Logo
Forums / All Other Contributions/Addons / Ultimate SEO v3 (and v2.200) [Support Thread]

Ultimate SEO v3 (and v2.200) [Support Thread]

Views: 427,455

Results 81 to 100 of 1,706
28 Oct 2012, 11:29 PM
#81
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Ultimate SEO v3 (and v2.200) [Support Thread]

Thank you.

How can I just make it not rewrite the ez pages? If I turn off the SEO plugin then the ezpage displays just fine.

This works

http://ie-proofs.com/domo-online.com/Outboard-Motor-Oil/index.php?main_page=page&id=1

BUT THIS DOESN'T

http://ie-proofs.com/domo-online.com/Outboard-Motor-Oil/home-page-ezp-1.html

I have remove the "page" references in the "pages to rewrite" but it is still trying to convert the link

This is what I have in my "pages to rewrite"

product_info,page,products_all, products_new, featured_products, specials, contact_us, conditions, privacy, reviews, shippinginfo, faqs_all, site_map, gv_faq, discount_coupon

29 Oct 2012, 12:37 AM
#82
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Right now I don't see that either ezpage link is properly working, but perhaps you are working on it.

But I just noticed this url and I've never seen one like it before:

http://ie-proofs.com/domo-online.com/Outboard-Motor-Oil/index.php?main_page=product_info&cPath=3_10&products_id=14

Two .com's. And your category Outboard Motor Oil appears to be re-written but the rest of the url looks like zencart's dynamic url. So I don't understand your site and am surprised that it works at all.

EDIT: Or perhaps Outboard Motor Oil isn't a category but a subfolder where your zencart is installed? Very unusual, with the two .com's...but perhaps correct for your set-up.

SECOND EDIT: I'm now guessing: is your second .com - domo-online.com - yet another subfolder? So you have top level domain/subfolder/subfolder?

29 Oct 2012, 1:31 AM
#83
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Thank you for the extensive explanation, first i would like to say I am not a newb, I am really experienced with PHP, MySQL and ZenCart, even developed my own plugin once ...

I am not familiar with version 1.5.0, that's the one I have installed now, I followed all the installation structure to the letter. Except for the fact that I renamed my old files to .ori the ones from affected files, I am a developer myself and a computer engineer although I am not developing in php all the time, but I have plenty of experience, I read all Zen Carts wiki, and tried to find out what I did wrong, my methodology is to recreate the tree structure EXACTLY, so I'm very careful, about what I copied, so instead of deleting the original files I usually keep them until I am 100% sure everything works, and what is new also, so I followed the installation file to the letter and in the same sequence, that is first new files then the ones that need to be overwritten. After checking several times and uploading using WinSCP, I made sure all files were EXACTLY were they supposed to be, so first I extracted both NewFiles, and Affected files directories to my desktop, the ones for version 1.5.0 in english, so i double checked both contained all the files and there were no errors by comparing the extracted version with compressed one I had still open in WinRar.

Then i followed this >>>

===========================================================
INSTALLATION INSTRUCTIONS

  1. Copy files from new_files_<version> and new_files_<version>_English to your Zen Cart install (<version> is your zen cart version).
    2a. If you haven't made changes to Zen Cart, Copy and replace files from affected_files_<version> to your Zen Cart install
    2b. If you have made changes to your Zen Cart, you will need to merge your versions with this version
  2. A sample .htaccess file is included. Simply rename to .htaccess and edit to match your site
  3. Config the module in CONFIGURATION - SEO URLs

For me its obvious, so I simply dropped the new files in their respective directories, again being VERY careful to follow exactly the tree structure and double checking each time, as it's really easy to follow because the frontend files are separate from the backend ones ... When finish with the new files for the front end and backend I went ahead and started with the ones that will replace the originals so again I made copies renaming to .ori and then just dropped the ones in the respective folders. So the new ones, and I also double checked that, are now in place of the original ones.
I understand is very easy to get confused and skip files even for power users like me, that's why I separate the directories and checked them one by one, then do another comparison with the original compressed package, just to make sure no files were missing ...

Then I noticed I missed a whole directory!!!
Lol I was too tired and didn't realize there are 2 newfiles folders, 1 that says nothing and one that says English! I only installed the English one hence the problems! Too tired thanks for your comments I went through all again and found out that simple fact!!! :oops:
BTW is working now although I would like to get rid of the p and the c!

29 Oct 2012, 2:16 AM
#84
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

thanks, that is correct. This site is replacing another ecommerce one that is not live yet, so I have to get it ready first.

The domain will be https://www.domo-online.com but for right now I have it as a subdomain just to get it working. Then when I make it live I will switch the domain from https://www.ie-proofs.com/domo-online.com/ to ------www.domo-online.com

You should be able to see that this page is working http://ie-proofs.com/domo-online.com/Outboard-Motor-Oil/index.php?main_page=page&id=1

Any idea how to make it so none of the EZ pages get directed, but the rest do?

thank you for the help

29 Oct 2012, 3:01 AM
#85
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

I guess I don't for the EZpages. I just looked at my admin and don't see ezpages listed at the bottom of my SEO admin as pages to re-write, so I guess they are supposed to be automatic. I was thinking that if EZpages were listed, removing it might work for you.

29 Oct 2012, 3:08 AM
#86
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

timhersh:

How can I just make it not rewrite the ez pages? ...
This is what I have in my "pages to rewrite"

product_info,page,products_all, products_new, featured_products, specials, contact_us, conditions, privacy, reviews, shippinginfo, faqs_all, site_map, gv_faq, discount_coupon

Remove "page" from that list. That is all you need to do to stop the EZ-Pages from being rewritten (and redirected). But there is definitely a problem with your template, installation, or environment if EZ-Pages are not working from the re-written URLs.

timhersh:

The domain will be https://www.domo-online.com but for right now I have it as a subdomain just to get it working. Then when I make it live I will switch the domain from https://www.ie-proofs.com/domo-online.com/ to ------www.domo-online.com
I wondered about this. Thank you for letting us know!

I would not recommend preparing a Zen Cart installation for production using a different base web path. It can cause you lots of headaches down the road (with paths in the database, paths in template files, paths for mod_rewrite, etc). I understand many companies do things the way you are to showcase a site to a client before it is deployed. But from experience I can tell you when it comes to website applications it is safer (and faster) to always match the deployment paths.

I would recommend you mimic the production environment including paths as closely as possible in the development environment. So if you plan to deploy under "http://www.domo-online.com/Outboard-Motor-Oil/" your development environment should be something like "http://dev.domo-online.com/Outboard-Motor-Oil/". If you plan to deploy under "http://www.domo-online.com/" then the development environment should be something like "http://dev.domo-online.com/". You could even do something like "http://domo-online.ie-proofs.com/". You get the idea.

If you want people on the forums here to be able to look at your store and try to provide help, it would also be best to give us a URL we can test against and see the same results you see (and the final store will look like). You can always use a robots.txt to keep out search engines until ready to deploy. You can also get fancy and use IP or password blocks to keep the development site from prying eyes (and selectively allow people here access to take a look).

29 Oct 2012, 3:34 AM
#87
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

icecold:

Thank you for the extensive explanation ... I am not familiar with version 1.5.0, that's the one I have installed now ...
I understand. This is why I posted a more detailed installation process. Hopefully what I posted will also help others running into installation issues.

icecold:

Then I noticed I missed a whole directory! ... I only installed the English one hence the problems! ... Too tired thanks for your comments
Yup, easy enough to do. Thus why I recommended starting the install of "Ultimate SEO URLs" over from scratch. It usually helps me to take a step back and re-walk through each step one at a time to make sure I did not miss anything. Now that you have it working - go get some well deserved sleep!

icecold:

BTW is working now although I would like to get rid of the p and the c!
Unfortunately this is not possible with "Ultimate SEO URLs" due to the way it works. One of the core "features" of this module is no database lookup to convert from the re-written URL to the Zen Cart dynamic URL. The anchors (such as -p-12, -c-8, -ezp-2) are used to pass the needed information for performing this step.

Without these anchors - a lookup table would need to be created and maintained in the database - and additional database queries would need to be performed. Personally I can live with the anchors to avoid the extra lookup and I like how "Ultimate SEO URLs" automatically generates the URLs for you instead of requiring you to enter in a URL by hand or via a paid tool. I also like how the URLs are automatically updated when a category or product name changes. No database lookup table also allows reversion to Zen Cart dynamic URLs to be far easier (if one decided to remove Ultimate SEO URLs).

However if you want more flexibility with your URLs, you should take a look at some of the other re-writers which maintain this extra database table. Currently I am not planning to add such a change to "Ultimate SEO URLs" anytime in the near future.

29 Oct 2012, 3:58 AM
#88
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Thank you. I realize this creates more work and appreciate the feedback, I can't access the old hosting account though and/or domain.

I have edited the list of "rewrite pages" and it still won't pull this up, but it will pull the version that is not redirected

will pull up

http://ie-proofs.com/domo-online.com/Outboard-Motor-Oil/index.php?main_page=page&id=1

won't pull up
http://ie-proofs.com/domo-online.com/Outboard-Motor-Oil/which-oil-to-use-ezp-1.html


here is my .htaccess. Is there anything in here I should edit to be able to make it so that everything but the ezpages are redirected?

##### NOTE: Replace /Outboard-Motor-Oil/ with the relative web path of your catalog in the "Rewrite Base" line below:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /domo-online.com/Outboard-Motor-Oil/

# From Ultimate SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]

# Normal Ultimate SEO URLs (disable if using ADD_PRODUCT_CAT)
#RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

# ADD_PRODUCT_CAT Ultimate SEO URLs (disable if not using ADD_PRODUCT_CAT)
RewriteRule ^(.*)-c-(.*).html$ $1-c-$2/ [R=301,L]
RewriteRule ^(.*)-c-([^/]+)$ %{REQUEST_URI}/ [R=301,L]
RewriteRule ^(.*)-c-([^/]+)/$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]


# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC] 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]

# Handle when a resource is not found (404 Error Page)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=page_not_found&%{QUERY_STRING} [L]
29 Oct 2012, 8:25 AM
#89
icecold avatar

icecold

Zen Follower

Join Date:
Jul 2008
Posts:
360
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Unfortunately this is not possible with "Ultimate SEO URLs" due to the way it works. One of the core "features" of this module is no database lookup to convert from the re-written URL to the Zen Cart dynamic URL. The anchors (such as -p-12, -c-8, -ezp-2) are used to pass the needed information for performing this step.

Without these anchors - a lookup table would need to be created and maintained in the database - and additional database queries would need to be performed.

I understand, that's why I asked and in ALL SEO forums I have been they talk about 'Clean URLs', and even some SEO reviewers I had pointed out this fact, so I thought there might be an Apache Mod REWRITE solution, again thanks for the clarification, you saved me hours of research! :)

Right now is working FINE, I hope Google doesn't mind these -p- and -c- added to the URLs ... If I have some time I might create that lookup extra Table you mention, but you mentioned, this is the way other carts do it probably, so I might do a little more research on that matter ...

29 Oct 2012, 1:27 PM
#90
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

timhersh:

I have edited the list of "rewrite pages" and it still won't pull this up, but it will pull the version that is not redirected
Yes, when you remove "page" from the list, all EZ-Pages will no longer be re-written or redirected. This is what you asked for.

If you leave "page" in the list, all EZ-Pages will be re-written and redirected if the redirect option is enabled.

If you want to see changes to the pages immediately after changing settings you need to reset the "seo cache" from the administrative settings.

I have not been able to duplicate your issue with EZ-Pages. I have re-tested with Zen Cart 1.5.0 and 1.5.1 under PHP 5.3 and 5.4 with the stock templates. This leads me to believe something in your environment or installation is causing the issue you are experiencing. You are also still using old versions of the .htaccess file. Go here for more detailed installation instructions for "Ultimate SEO URLs" and go here for the new .htaccess file.

29 Oct 2012, 4:46 PM
#91
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Timhersh,

I was thinking this morning that if I were you, I'd install yet another free template...probably a Picaflor template...to trouble-shoot your ezpages problem; see if Ultimate SEO works with the ezpages on another template. I say Picaflor because her templates are faithful to the zencart system. I know you've said that the Classic template works, but I'd want to confirm that it is, in fact, your current custom template.

And IMO, no template is worth breaking major zencart functions...unless perhaps it's something like L i g h t i n t h e b o x or D H G A T E, and I'd consider ezpages a major function.

Templates have kind of been my thing here at Zencart, having tested many free ones and am aware of many commercial templates. I don't recognize your template; did you hosting company make it for you?

29 Oct 2012, 7:46 PM
#92
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

We have always used Ulitmate SEO URL. The problem is that we are not able to add the www canonical redirect to the .htaccess file now. It just breaks the site. I have tried adding it to the beginning after the rewrite base rule and at the end of the file but no luck. Has anyone else encountered this problem?

29 Oct 2012, 8:38 PM
#93
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Thank you again,

I did download the free template you mentioned and tried that. No luck either. All of the EZ pages won't display in ANY of the templates...but the other pages do display perfectly....just wondering if there is a way to make it not convert the easy pages. That way I can leave the SEO URL's ON but still use easy pages

thanks

29 Oct 2012, 8:47 PM
#94
thedrunkenbundt avatar

thedrunkenbundt

New Zenner

Join Date:
Oct 2012
Location:
Arizona
Posts:
4
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

I'm using v2.207 on linux box with php 5.3. All works except for adding products to the cart. When I turn off Ultimate SEO, all works. I have many add-ons installed and have found that the only error I find in my log files is this one when I tried twice to put the product in the card twice and neither time did it display the cart or add it to my cart:

[29-Oct-2012 19:32:53 UTC] PHP Fatal error: 1062:Duplicate entry 'f85998bdcbb2dd4d7535cd348cafba03' for key 1 :: insert into zen_sessions
values ('f85998bdcbb2dd4d7535cd348cafba03', '1351540613', 'c2VjdXJpdHlUb2tlbnxzOjMyOiJmYTFiYWQ0MWM2NTViYzliNGRhMmFlZWNlMjFlNzEwZCI7Y3VzdG9tZXJzX2hvc3RfYWRkcmVzc3xzOjI4OiIxODQtOTgtMTk3LTc3LnBobngucXdlc3QubmV0IjtTU0xfU0VTU0lPTl9JRHxOO2NhcnRJRHxzOjA6IiI7Y2FydHxPOjEyOiJzaG9wcGluZ0NhcnQiOjc6e3M6ODoiY29udGVudHMiO2E6MDp7fXM6NToidG90YWwiO2k6MDtzOjY6IndlaWdodCI7aTowO3M6MTI6ImNvbnRlbnRfdHlwZSI7YjowO3M6MTg6ImZyZWVfc2hpcHBpbmdfaXRlbSI7aTowO3M6MjA6ImZyZWVfc2hpcHBpbmdfd2VpZ2h0IjtpOjA7czoxOToiZnJlZV9zaGlwcGluZ19wcmljZSI7aTowO31uYXZpZ2F0aW9ufE86MTc6Im5hdmlnYXRpb25IaXN0b3J5IjoyOntzOjQ6InBhdGgiO2E6MDp7fXM6ODoic25hcHNob3QiO2E6MDp7fX1jaGVja192YWxpZHxzOjQ6InRydWUiO2xhbmd1YWdlfHM6NzoiZW5nbGlzaCI7bGFuZ3VhZ2VzX2lkfHM6MToiMSI7bGFuZ3VhZ2VzX2NvZGV8czoyOiJlbiI7Y3VycmVuY3l8czozOiJVU0QiO3RvZGF5X2lzfHM6MTA6IjIwMTItMTAtMjkiO3VwZGF0ZUV4cGlyYXRpb25zfGI6MTtzZXNzaW9uX2NvdW50ZXJ8YjoxO2N1c3RvbWVyc19pcF9hZGRyZXNzfHM6MTM6IjE4NC45OC4xOTcuNzciOw==') in /home/content/12/9538212/html/includes/classes/db/mysql/query_factory.php on line 120

I have tried several versions of the htaccess file. The one that comes with 2.207 and then the patch mentioned in another post. I have turned off using categories as directories. I've compared files for hours. I'm not having any success.

Here is my current htaccess file:

NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

Normal operation Ultimate SEO URLs

RewriteRule ^(.)-c-([^/])/(.)-p-(.).html$ index.php?main_page=product_info&products_id=$4&cpath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-p-(.*).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]

Disable if using ADD_PRODUCT_CAT

#RewriteRule ^(.)-c-(.).html$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

ADD_PRODUCT_CAT Ultimate SEO URLs (disable if not using ADD_PRODUCT_CAT)

RewriteRule ^(.)-c-(.).html$ $1-c-$2/ [R=301,L]
RewriteRule ^(.)-c-([^/]+)$ %{REQUEST_URI}/ [R=301,L]
RewriteRule ^(.
)-c-([^/]+)/$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

Normal operation Ultimate SEO URLs

RewriteRule ^(.)-m-([0-9]+).html$ index.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pi-([0-9]+).html$ index.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-pr-([0-9]+).html$ index.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pri-([0-9]+).html$ index.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+).html$ index.php?main_page=page&id=$2&%{QUERY_STRING} [L]

All other pages

Don't rewrite real files or directories

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L]

Handle when a resource is not found (404 Error Page)

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?main_page=page_not_found&%{QUERY_STRING} [L]

Here is my website: http://thedrunkenbundtcakery.com
Here is my list of add-ons:
Add new orders 15x
Add new customer from admin
backup_zc_v1.1
css3_buttons_v101
dynamic_filter
edit_orders_v4.03
Monthly_Sales-Tax_Summary-v1.4
poll_manager_1.2 (note: I had to disable the lookup admin IP function here because it conflicted with new orders)
purchase_order_basic_v1_1a
reviews_updated
super_orders_4-0-4_final
TabbedProductsPro_1.09
tablerate_clones
testimonial_manager_v1-5-3d
ups_v15
USPS v15 Ratev3

29 Oct 2012, 9:12 PM
#95
thedrunkenbundt avatar

thedrunkenbundt

New Zenner

Join Date:
Oct 2012
Location:
Arizona
Posts:
4
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

There must be a Murphey's Law. I delayed and delayed putting in my post above. As soon as I did. I was able to figure out the issue. There seems to be a conflict between Ultimate SEO and the Product Listing selection of "on" for "Display Multiple Products Qty Box Status and Set Button Location". If I set this selection to "0" or off, then Ultimate SEO works. If I turn it on, it does not let me add to the cart.

So I'm good to go now. And I appreciate the effort you put in for this plug in.

This Bundt's For You! Attachment 11370

29 Oct 2012, 9:12 PM
#96
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

ksookma:

We have always used Ulitmate SEO URL. The problem is that we are not able to add the www canonical redirect to the .htaccess file now. It just breaks the site. I have tried adding it to the beginning after the rewrite base rule and at the end of the file but no luck. Has anyone else encountered this problem?
As of Zen Cart 1.5 you should no longer be adding the www redirect to the .htaccess file. To force a perfix under Zen Cart 1.5 you have to change the settings in "/includes/configure.php" and "/includes/admin/configure.php" adding the www prefix.

Zen Cart 1.5 Example:

  define('HTTP_SERVER', 'http://www.zen-cart.com');
  define('HTTPS_SERVER', 'https://www.zen-cart.com');
29 Oct 2012, 9:33 PM
#97
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

TheDrunkenBundt:

There must be a Murphey's Law. ... So I'm good to go now.
Glad you were able to get things working. That error message looks surprisingly similar to a known bug which was fixed in later versions of Zen Cart.

Can you try applying the patch for "Buy Now / Add Selected Products to Cart" if you have not already and let me know what you find? Version 2.207 does not include this patch (I am working on a new version, but no ETA on a release date yet).

29 Oct 2012, 9:56 PM
#98
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

timhersh:

I did download the free template you mentioned and tried that. No luck either. ...
In order to provide any further help on the specific problems you are encountering we need to be able to duplicate the issue. As I have been unable to duplicate your problems on Zen Cart 1.5.0 / 1.5.1 under PHP 5.2, 5.3, or 5.4 using either the "classic" template or a custom template...

This leads me to still believe the problem is specific to your Zen Cart installation, template, or environment. Most likely something with your installation path and the .htaccess file you are using (did you update to the newer one found in this thread yet)?

This goes double if you are accessing this site from more than one base URL, which it sounds like you might be doing.

29 Oct 2012, 10:43 PM
#99
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

As of Zen Cart 1.5 you should no longer be adding the www redirect to the .htaccess file. To force a perfix under Zen Cart 1.5 you have to change the settings in "/includes/configure.php" and "/includes/admin/configure.php" adding the www prefix.

Zen Cart 1.5 Example:

define('HTTP_SERVER', 'http://www.zen-cart.com');
define('HTTPS_SERVER', 'https://www.zen-cart.com');


But if you go to the url without the www the www does not auto add. It does add on to the path when you navigate around the site but if google attemps to go to the non www version it will still work and google will think its another page.
30 Oct 2012, 3:00 AM
#100
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

ksookma:

We have always used Ulitmate SEO URL. The problem is that we are not able to add the www canonical redirect to the .htaccess file now. It just breaks the site. I have tried adding it to the beginning after the rewrite base rule and at the end of the file but no luck. Has anyone else encountered this problem?

No, my htaccess redirect works on my 1.5.1 cart with Ultimate SEO. I'm copying my htaccess below the asterisks - note that my settings for Ultimate SEO may differ from yours.

I know what you mean about the initial canonical www. But since Zencart doesn't do anything about it I wonder if it's really that big of an issue. Also, one can set their google webmasters to show the www and non-www versions and indicate to google which is the canonical, which is probably a good idea since it's all about google.

Nevertheless, just the other day I included the canonical redirect in my htaccess.

But note that before I could add the non-www the other day in my google webmasters I had to briefly remove the htaccess canonical redirect to verify the non-www version.


ErrorDocument 404 /errors/notfound.html
ErrorDocument 500 /errors/internal_error.html

NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

Disable if using "Categories as Directories"

RewriteRule ^(.)-c-([0-9_]+)/(.)-p-([0-9]+).html$ $3-p-$4.html?cPath=$2&%{QUERY_STRING} [R=301,L]

Enable only if using "Categories as Directories"

#RewriteRule ^(.)-c-([0-9_]+)/(.)-p-([0-9]+).html$ index.php?main_page=product_info&products_id=$4&cpath=$2&%{QUERY_STRING} [L]

Normal operation Ultimate SEO URLs

RewriteRule ^(.*)-p-([0-9]+).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]

Disable if using "Categories as Directories"

RewriteRule ^(.)-c-([0-9_]+).html$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-c-([0-9_]+)/$ $1-c-$2.html [R=301,L]

Enable only if using "Categories as Directories"

#RewriteRule ^(.)-c-([0-9_]+)/?.html$ $1-c-$2/ [R=301,L]
#RewriteRule ^(.
)-c-([0-9_]+)$ %{REQUEST_URI}/ [R=301,L]
#RewriteRule ^(.*)-c-([0-9_]+)/$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

Normal operation Ultimate SEO URLs

RewriteRule ^(.)-m-([0-9]+).html$ index.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pi-([0-9]+).html$ index.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-pr-([0-9]+).html$ index.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pri-([0-9]+).html$ index.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+).html$ index.php?main_page=page&id=$2&%{QUERY_STRING} [L]

All other pages

Don't rewrite real files or directories

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L]

Handle when a resource is not found (404 Error Page)

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?main_page=page_not_found&%{QUERY_STRING} [L]

RewriteCond %{HTTP_HOST} ^prommart.com$ [NC]
RewriteRule ^(.*)$ http://www.prommart.com/$1 [R=301,L]

the following makes sure the correct mime type is sent for the .htc file

AddType text/x-component .htc

<IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule>

FileETag INode MTime Size
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>