-
Ultimate SEO v3 (and v2.200) [Support Thread]
Firstly, Thanks to all those who spent the time to write, code, and maintain this plugin over the years. Without your hard work it would have taken me far longer to meet the requests and needs of my clients in terms of generated URLs under Zen Cart.
Updates / Fixes
I've released my previously internal version of the "Ultimate SEO" plugin. Version 2.200 contains a number of changes for compatibility with PHP 5.x, improved (but not perfect) handling of unicode, improved (but not perfect) handling when used with the "Query Cache" plugin, initial support for using the "SQL_CACHE_METHOD" configuration directive in ZC 1.5, and support for ZC 1.5 admin profiles.
New Features
Add category to begining of product URLs?
This setting will add the category name to the beginning of the product URLs (i.e. - category-c-1/product-p-1.html). This will create a nested hierarchy and categories will appear to be directories. Be aware when setting this option to true: the previous option "Add category parent to begining of URLs? (parent-category-c-1.html)" will be ignored and you will need to update the rewrite rules in your .htaccess file.
Enter PCRE filter rules for generated URLs
This setting will allow you to run PCRE filters over the generated URLs before the existing "special character conversions" and "Remove all non-alphanumeric characters" filters are run. This provides a large amount of flexibility to transform the url. For example using "&=>and" will generate a URL with all & symbols in the name of a category or product replaced with the word "and".
Disclaimer
I do not currently have the time to fully support this plugin, and will not guarantee it will not break your site. If in doubt, always test first on a non production site before deploying this (or any other plugin).
That said, I've been using this version without any major issues since the release of ZC 1.5 (with one small update in March to better handle product types and the Query Cache plugin). I am running with both the new features enabled, all URLs being rewritten, and the "remove all non-alphanumeric characters" filter disabled.
-
Re: Ultimate SEO 2.200+ (new features)
Upcoming Changes / Changes in Testing
- Support for generating catalog links from admin pages (for example when generating emails)
-
Re: Ultimate SEO 2.200+ (new features)
Adjusting the .htaccess file
Don't forget after installing Ultimate SEO to adjust the .htaccess file to fit your server environment. This is especially true of the "RewriteBase" directive. This should be the "relative" URL path to your catalog. So if your site is "www.zen-cart.com/shop/" then the RewriteBase should be "/shop/". If your site is at / (website root) then should change the RewriteBase to /.
Additionally if you hosted on a site using a webserver other then apache, you will need to consult the documentation for the webserver for how to setup redirection. For the IIS webserver (commonly used on Windows Platform) most hosting providers have installed a "filter" which understands .htaccess files, but I have run into a few cases on Windows Platform hosting where I've needed to edit rules using the Microsoft URL Rewrite Module instead.
With Ultimate SEO 2.200 there have been some changes to the .htaccess file.
Depending on the setting you use for "Add category to begining of product URLs?" you need to adjust the .htaccess file. There are additional (but basic) comments in the htaccess sample telling you which lines need to be enabled / disabled.
Basically the first block handles the case where categories are NOT directories. The second block handles the case where categories ARE directories. These blocks are mutually exclusive (you should never have both enabled at the same time). While you could just enable the last two lines permanently in the second block - If you are not using the "Add category to beginning of product URLs?" option disabling those two lines will result in two less checks the web server needs to do before displaying a page.
I've also added a line at the end of the file for redirecting requests to non existing pages on the server to the defined 404 page of Zen Cart.
-
Re: Ultimate SEO 2.200+ (new features)
Many thanks for your hard work, I'm sure it is appreciated by a lot of its users!
Updating Ultimate SEO Urls keeps this mod alive and is now a strong alternative for Ceon Uri on zencart 1.5, with the obvious advantage of auto-generating the old urls.
Thanks again!
-
Re: Ultimate SEO 2.200+ (new features)
Could not get this version of Ultimate SEO to show in admin in a fresh 1.5 install.
I just put this test site up specifically to test this updated Ultimate SEO:
http://www.prom-mart.com/demo-4/
Only plugins are:
DrByte's DB Backup (a must have and life saver)
Ultimate SEO URL 2.200
Classic Template as I write this.
Site was re-writing the product urls using the entire category/product path. But nothing showed in admin under Configuration or elsewhere.
I uninstalled this version by deleting all uploaded files AND doing a DB restore from admin (the life-saver).
I then uploaded the prior version Ultimate SEO URL 2.150 which has done well in my prior testings. It is currently working, including appearing in admin. This prior version has never failed me on a fresh 1.5 install.
I was hoping that this newer version Ultimate SEO would solve a pesky problem a few of my prior testings had: the page not found problem when go to a product, then a page like Contact Us, then hit the back button at bottom of Contact Us...some of my sites went to page not found in the Chrome browser. Other's do not have this problem, including my latest demo here.
As time permits I'll add a template and maybe a few of my typical mods to see if and where the back button/page not found problem appears.
Thank you for your help with this plugin and I intend to use whatever Ultimate SEO version works best for me when I return to the dark side and go back to re-writing when I upgrade my main site.
-
Re: Ultimate SEO 2.200+ (new features)
I do know 2.200 version will not install the admin pages if the tables still exist from previous versions of Ultimate SEO (including old configuration tables - upgrading requires a full uninstall of older versions atm), but as your install was "clean" (including a clean database) this should not have impacted you. Also I should note the name which appears in the configuration with 2.200+ is "Ultimate SEO".
Version 2.150 used a hard coded "sort order" when it installed the relevant settings for the configuration, version 2.200 peeks at the current configuration table and uses "sort order" = (max sort value + 1). Other then some minor naming changes the install script was almost identical.
I'll set up a test environment a little later this week w/ a clean database and installation. If all goes well I'll probably throw in the additional new features I've added since I uploaded 2.200 and possibly some configuration option renames (to be more clear on functionality). If not, I'll take a look at the install procedure again.
-
Re: Ultimate SEO 2.200+ (new features)
Yes, I discovered the incompatability when I first tried installing this latest version on another site using the prior version. As I recall, the urls were being re-written, this time with the cpath included in the product url. But my admin for this plugin was just an empty page. So did the uninstall and DB restore on that site.
On my fresh install site I mention earlier, I didn't see this plugin in admin at all, although the urls were being re-written.
Anyway, I also wish to thank you for your help in keeping this plugin alive!
-
Ultimate SEO 2.205 (bugfix and updates)
New version (2.205) has been uploaded, look for it in the next couple days.
Release Notes
The admin page not showing up under the store configuration has been corrected. This version uses a different page_key compared to version 2.150 (2.200 was a branch of 2.109). During the uninstall if the page_key used by version 2.150 is present it will be cleaned up.
Corrected a location in the zip file from "new_files_150_English\your_admin_folder\languages" to "new_files_150_English\your_admin_folder\includes\languages". Should make clean installations via drag and drop easier.
The option previously known as "Add category to beginning of product URLs?" has been renamed to the more appropriate "Show categories as directories in the URL?". Enabling this option will display categories as directories in the URL (category-c-1/product-p-1.html). Enabling this option will disable the option "Add category parent to beginning of URLs? (parent-category-c-1.html)" if it was enabled.
Changed the SQL syntax used to install the seo_cache table from "TYPE=MyISAM" to "ENGINE=MyISAM" to provide better compatibility with newer versions of MySQL.
All calls to "zen_catalog_href_link" in the administrative interface will now generate URLs using the settings in "Ultimate SEO". This is particularly useful during the generation of emails.
Todo List
There are a number of changes which should be made to this plugin. Here are a few I'd like to see (might just wait until ZC 2.x).
1) All the language specific files should be changed over to use language defines instead of being duplicated files with translations inline.
2) Converting the installer to use auto_loaders and init_includes under admin to perform installation checks and installation instead of being run each time the seo_url class is loaded.
3) Update verbiage for the configuration options.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
SPH
I was hoping that this newer version Ultimate SEO would solve a pesky problem a few of my prior testings had: the page not found problem when go to a product, then a page like Contact Us, then hit the back button at bottom of Contact Us...some of my sites went to page not found in the Chrome browser. Other's do not have this problem, including my latest demo here.
I've not been able to duplicate this myself yet *crosses fingers*. I'm guessing it may be related to some sort of dynamic or restricted content being loaded by an plugin (and the plugin not removing the call from the history stack). Or maybe the browser making some additional calls. But if you do run into this problem again add the following to the template of the page where the "back" button is displayed. Hopefully we can look at the output to help track down the issue.
Code:
<!-- BACK BUTTON GENERATED <?php
if(sizeof($_SESSION['navigation']->path)-2 >= 0) {
$back = sizeof($_SESSION['navigation']->path)-2; ?>
SESSION PAGE: <?php echo $_SESSION['navigation']->path[$back]['page']; ?>
SESSION PARAMS: <?php echo zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action'); ?>
SESSION CONNECTION: <?php echo $_SESSION['navigation']->path[$back]['mode']; ?>
GENERATED LINK: <?php echo zen_href_link($_SESSION['navigation']->path[$back]['page'],zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']);
} ?>
-->
-
Re: Ultimate SEO 2.200+ (new features)
Thanks alot for that possible fix! Will test it soon. Hopefully won't have problem on my main site when I upgrade and return to re-writing.
BTW, I just posted on the Simple SEO thread where someone has the same back button/page not found in all of my browsers: IE9, Chrome, Firefox. I've also had this problem on SOME of my sites when using the Simple SEO plugin.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lhungil
Code:
<!-- BACK BUTTON GENERATED <?php
if(sizeof($_SESSION['navigation']->path)-2 >= 0) {
$back = sizeof($_SESSION['navigation']->path)-2; ?>
SESSION PAGE: <?php echo $_SESSION['navigation']->path[$back]['page']; ?>
SESSION PARAMS: <?php echo zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action'); ?>
SESSION CONNECTION: <?php echo $_SESSION['navigation']->path[$back]['mode']; ?>
GENERATED LINK: <?php echo zen_href_link($_SESSION['navigation']->path[$back]['page'],zen_array_to_string($_SESSION['navigation']->path[$back]['get'], array('action')), $_SESSION['navigation']->path[$back]['mode']);
} ?>
-->
I guess I don't know where to add this code.
I'm trying to test it on my Page 2 on this site here:
http://www.promdressesforless.us/page_2.html
I currently have the code on templates/estorenow/templates/tpl_page_2_default.php but the page went blank and cut off my footer area.
I also tried modules/pages and again under languages but got internal server error on those.
Where exactly do we add this? Thanks.
-
Back Link Debugging
Back links are NOT actually created by the "Ultimate SEO" plugin and I suspect the same is true for the "Simple SEO" plugin. Back links are actually created by a stock function built into Zen Cart. However these two modules typically hook into the function "zen_href_link" which IS used by the function generating back links.
The built in function simply looks at a session variable storing "navigation history". If there is history, it sends the historical parameters to the function "zen_href_link" which in turn calls the code for URL (re-)writing. If no history exists and there is a referrer the referrer is used.
The templates I have attached to this thread (for page2, page3, page4, and contact_us) will add a comment to the webpage source listing the parameters sent to the "zen_href_link" function. They were created against "template_default" so if you are using a custom template, you may want to copy the relevant section to your custom template.
These templates should give us better insight into what is occurring when people see intermittent 404's on a back link.
For example, if the parameters do not make sense, have garbled characters, or are to invalid pages we know something else is breaking the back button functionality. If the parameters are correct and the generated link is correct, but you are getting the 404, possibly a rewrite rule is not working as expected. If the parameters are correct and the generated link is wrong... then most likely something went wrong in the URL (re-)writer and further debugging will be necessary.
-
Re: Back Link Debugging
Didn't work, sorry.
Tried the fix on my problem site here:
http://www.promdressesforless.us/
I even tried with the Classic template using page 2 fix. Still didn't work, have back button/page not found problem.
NOTE: that my bug only happens in the Chrome browser. My IE9 and Firefox work okay.
Only mods on site are Easy Populate 4, Image Handler 4, DrByte's DB Backup plugin, Column Layout Grid...and the Estorenow template for this purpose. But Classic and Hampshire Cammie (Picaflor) templates didn't work in Chrome re the back button.
My fresh install on Classic template here does work in Chrome:
http://www.prom-mart.com/demo-4/
Only plugin is Ultimate SEO. (No IH)
Now, this is interesting. I have another 1.5 site here with Ultimate SEO:
http://www.prom-mart.com/demo-2/
Plugins: Dynamic Filter (disabled)
It uses the rather sophisticated Rubik template and is somewhat jacked-up from my messing around. BUT the back button works in Chrome!
And I just noticed that I have not installed Image Handler 4 on this site.
Wonder if IH4 could be the problem in Chrome? The sites that work don't yet have IH; and the sites that don't work do have IH.
Thanks again for your help.
EDIT: My sister's site - 1.5ZC, Ultimate SEO, Cambridge Pro Template (Picaflor) and *IH4* - back button doesn't work in Chrome. Tried fix with just contact us, didn't work.
-
Re: Ultimate SEO 2.200 (new features) [Support Thread]
Nope, probably isn't IH.
I have two more demo sites - more serious so less messing around - that I recently installed Ultimate SEO on.
http://www.webdivision.prommart.com/...h_id=barebones
http://www.prom-mart.com/demo-3/?tem...h_id=estorenow
Both sites use template switcher and IH4. One has the Dynamic Filter. One of the templates is Estorenow (same template as on my problem site). The back button WORKS on both sites in Chrome and without the fix.
Only a problem for me in Chrome. Can't figure it out. But perhaps the pop-up Terms on page two of checkout that I recently discovered and got working on one of my sites will solve the back button problem during checkout, so customers don't get lost. I think that the main issue.
EDIT: My barebones site in first link with Dynamic Filter even works in Chrome with the backbutton.
-
Re: Ultimate SEO 2.200 (new features) [Support Thread]
Those templates are not a "fix" they just can be used to provide additional debugging information relating to the generation of the back button. With the changes in those templates, the following can be found in the generated website source code right above the generated back button.
Code:
<!-- BACK BUTTON GENERATED
SESSION PAGE: 'product_info'
SESSION PARAMS: 'products_id=22'
SESSION CONNECTION: 'NONSSL'
GENERATED LINK: 'http://www.earth.local/store/software-c-2/action-c-2_19/unreal-tournament-linked-p-22.html'-->
Please post the results here from the "broken" chrome link.
-
Re: Ultimate SEO 2.200 (new features) [Support Thread]
Can you provide a link to download v2.205? Thanks
-
Re: Ultimate SEO 2.200 (new features) [Support Thread]
Quote:
Originally Posted by
neteasy
Can you provide a link to download v2.205? Thanks
The official download page for "Ultimate SEO" is http://www.zen-cart.com/downloads.php?do=file&id=132. Version 2.205 has been uploaded and is currently pending review by a moderator.
-
Re: Ultimate SEO 2.200 (new features) [Support Thread]
Quote:
Originally Posted by
lhungil
Those templates are not a "fix" they just can be used to provide additional debugging information relating to the generation of the back button. With the changes in those templates, the following can be found in the generated website source code right above the generated back button.
Code:
<!-- BACK BUTTON GENERATED
SESSION PAGE: 'product_info'
SESSION PARAMS: 'products_id=22'
SESSION CONNECTION: 'NONSSL'
GENERATED LINK: 'http://www.earth.local/store/software-c-2/action-c-2_19/unreal-tournament-linked-p-22.html'-->
Please post the results here from the "broken" chrome link.
Misunderstood, sorry.
I'm posting below the view source for Contact Us and Page 2 - after first going to a product - for Chrome and then IE9:
Code:
Contact Us - Chrome
<!-- BACK BUTTON GENERATED
SESSION PAGE: 'page_not_found'
SESSION PARAMS: ''
SESSION CONNECTION: 'NONSSL'
GENERATED LINK: 'http://www.promdressesforless.us/index.php?main_page=page_not_found'-->
<div class="buttonRow back"><a href="http://www.promdressesforless.us/index.php?main_page=page_not_found"><img src="includes/templates/estorenow/buttons/english/button_back.gif" alt="Back" title=" Back " width="70" height="21" /></a></div>
</form>
</div>
Page 2 - Chrome
<!-- BACK BUTTON GENERATED
SESSION PAGE: 'page_not_found'
SESSION PARAMS: ''
SESSION CONNECTION: 'NONSSL'
GENERATED LINK: 'http://www.promdressesforless.us/index.php?main_page=page_not_found'-->
<div class="buttonRow back"><a href="http://www.promdressesforless.us/index.php?main_page=page_not_found"><img src="includes/templates/estorenow/buttons/english/button_back.gif" alt="Back" title=" Back " width="70" height="21" /></a></div>
Contact Us - IE9
<!-- BACK BUTTON GENERATED
SESSION PAGE: 'product_info'
SESSION PARAMS: 'products_id=31&cPath=1_3'
SESSION CONNECTION: 'NONSSL'
GENERATED LINK: 'http://www.promdressesforless.us/alyce-6116-rts2-p-31.html?cPath=1_3'-->
<div class="buttonRow back"><a href="http://www.promdressesforless.us/alyce-6116-rts2-p-31.html?cPath=1_3"><img src="includes/templates/estorenow/buttons/english/button_back.gif" alt="Back" title=" Back " width="70" height="21" /></a></div>
Page 2 IE9
<!-- BACK BUTTON GENERATED
SESSION PAGE: 'product_info'
SESSION PARAMS: 'products_id=15&cPath=1_2'
SESSION CONNECTION: 'NONSSL'
GENERATED LINK: 'http://www.promdressesforless.us/paparazzi-8226-rts2-p-15.html?cPath=1_2'-->
<div class="buttonRow back"><a href="http://www.promdressesforless.us/paparazzi-8226-rts2-p-15.html?cPath=1_2"><img src="includes/templates/estorenow/buttons/english/button_back.gif" alt="Back" title=" Back " width="70" height="21" /></a></div>
-
Re: Back Link Debugging
From what you posted it appears the back link generation code (NOT PART OF ULTIMATE SEO) is telling Ultimate SEO to create a link to "page_not_found". Probably the same think is happening when using other URL (re-)writers.
What does this mean? Some other plugin or code is being accessed by Chrome and thus added to the internal "history" component of Zen Cart. Or.... Something with Chrome is modifying the SESSION.
Next steps? You said this does not occur on a stock installation (and I did not see it on my testing site). Start from scratch, add the templates and Ultimate SEO (or other URL (re-)writer). Then add one plugin / add-on at a time, checking after each installation, until problem shows back up. If it shows up after installing a specific plugin, you can either look at fixing the code in that plugin... or contact the developer. Another thing I would do if you are not already: add a debugger such as Firebug to your Chrome installation (or use a proxy) and watch the page requests. This will let you see what requests are being sent (and might be added to the Zen Cart history).
-
Product Cache Generation Patch
Affected Environments
This affects users with multiple language sites and sites where the website visitor may be using a language not present in the Zen Cart database. The website visitor can still visit the site without any major issues, just the products url cache is NOT fully populated with their language.
Credits
Thanks to ivanqf for finding this bug in the released code.
Request
Prior to adding this patch to the next release, if anyone running a site with multiple languages or a non-English site could provide some additional testing and feedback it would be appreciated.
-
Product Types Patch
Affected Environments
This affects users with multiple (and custom) product types. Without this patch, the correct templates will not be loaded to display the product type.
Credits
Thanks to vkd1980 for finding this bug in the released code.
Notes
I forgot to include the updated index.php with support for additional product types when v2.200 and v2.205 was packaged. I will be including this patch in the next version.
-
Documentation
Help Wanted - Documentation
Do you have excellent technical writing skills and attention to detail? If so, any help writing documentation for this module would be appreciated! Currently, I feel the documentation for installation, configuration, and usage are a little lacking. I may work on this a little in my spare time, but life, work, and volunteer activities tend to keep me very busy.
Help Wanted - Translation
Do you read and write multiple languages? If so, any help updating (or creating new) versions of the language specific files would be appreciated! This is an area the module could use some help. While I can understand more then one spoken language... I would need to revert to using a translation utility to generate written translations. I feel someone fluent (or better yet a native speaker) in a non-English language could provide far better and useful translations.
-
Re: Documentation
Hello,
after installation of SEO module to clean ZenCart 1.5 everything was ok. When I added product than category name was missing in URL:
Code:
http://www.domain.com//-p-1.html
When I added seccond product to same category I get blank page at all. In debug files is:
Code:
PHP Fatal error: Call to a member function MoveNext() on a non-object in /var/www/web/includes/classes/seo.url.php on line 848
sql from function get_parent_categories_path looks like this
Code:
SELECT c.parent_id AS p_id, cd.categories_name AS name FROM categories c LEFT JOIN categories_description cd ON c.categories_id=cd.categories_id AND cd.language_id='2'WHERE c.categories_id='0'
c.categories_id='0' should be 1. In $categories_id variable is no value.
Any idea what to do? At this time I have to completly remove SEO module from ZenCart installation.
Thanks in advance.
SupuS
-
Re: Documentation
Quote:
Originally Posted by
SupuS
Code:
http://www.domain.com//-p-1.html
SupuS
That url doesn't look correct at all. Shouldn't be double slashes after .com. And the url is missing the product name.
A link or non-linked text address to your site might help.
-
Re: Ultimate SEO 2.200+ (new features)
There seems to be a bug in the script causing a blank page, but it only affects stores using a database prefix because the table names are hard coded.
Here's the solution. Edit includes/classes/seo.url.php file as follows:
find (line 613)
Code:
/* START SEO-ADD-PRODUCT-CAT PATCH
*
* Patched to use SEO_ADD_PRODUCT_CAT
* This allows the use of a directory structure for urls.
* @author Andrew Ballanger
*/
if($this->attributes['SEO_ADD_PRODUCT_CAT'] == 'true')
{
$sql = 'SELECT pd.products_name AS pName, ptc.categories_id AS c_id ' .
'FROM products_description AS pd ' .
'LEFT JOIN products AS p ' .
'ON pd.products_id=p.products_id ' .
'LEFT JOIN products_to_categories AS ptc ' .
'ON pd.products_id=ptc.products_id ' .
'WHERE pd.products_id=\'' . (int)$pID . '\' ' .
'AND language_id=\'' . (int)$this->languages_id . '\' LIMIT 1';
}
and replace with:
Code:
/* START SEO-ADD-PRODUCT-CAT PATCH
*
* Patched to use SEO_ADD_PRODUCT_CAT
* This allows the use of a directory structure for urls.
* @author Andrew Ballanger
*/
if($this->attributes['SEO_ADD_PRODUCT_CAT'] == 'true')
{
$sql = 'SELECT pd.products_name AS pName, ptc.categories_id AS c_id ' .
'FROM ' . TABLE_PRODUCTS_DESCRIPTION . ' AS pd ' .
'LEFT JOIN ' . TABLE_PRODUCTS . ' AS p ' .
'ON pd.products_id=p.products_id ' .
'LEFT JOIN ' . TABLE_PRODUCTS_TO_CATEGORIES . ' AS ptc ' .
'ON pd.products_id=ptc.products_id ' .
'WHERE pd.products_id=\'' . (int)$pID . '\' ' .
'AND language_id=\'' . (int)$this->languages_id . '\' LIMIT 1';
}
find (line 825)
Code:
function get_parent_categories_path(&$path, $categories_id, &$cPath = array())
{
$sql = 'SELECT c.parent_id AS p_id, cd.categories_name AS name ' .
'FROM categories c ' .
'LEFT JOIN categories_description cd ' .
'ON c.categories_id=cd.categories_id ' .
'AND cd.language_id=\'' . (int)$this->languages_id . '\'' .
'WHERE c.categories_id=\'' . (int)$categories_id . '\'';
$parent = $this->db->Execute($sql, false, true, 43200);
and replace with
Code:
function get_parent_categories_path(&$path, $categories_id, &$cPath = array())
{
$sql = 'SELECT c.parent_id AS p_id, cd.categories_name AS name ' .
'FROM ' . TABLE_CATEGORIES . ' c ' .
'LEFT JOIN ' . TABLE_CATEGORIES_DESCRIPTION . ' cd ' .
'ON c.categories_id=cd.categories_id ' .
'AND cd.language_id=\'' . (int)$this->languages_id . '\'' .
'WHERE c.categories_id=\'' . (int)$categories_id . '\'';
$parent = $this->db->Execute($sql, false, true, 43200);
Changes are highlighted in red. Hope it helps...
-
Re: Ultimate SEO 2.200+ (new features)
@balihr, Thanks for the catch, I'll go back through the code before the next release and look for any SQL statements where the table names are used directly.
@SupuS, It looks like you are using either more then one language or a non-english language.
Before you add balihr's changes, please use the "Product Cache Generation Patch" previously posted in this thread.
My Guess
Another consideration (I've not completely dug through all the code from the original module): if no name is found in the database for the language the web browser is set to use. When this occurs, it may cause the current code base to omit names in the URLs (If I remember correctly, the module does not attempt to fall back to another language if no language specific result is found).
Fix for Guess
If the target audience for your store includes more than one language, please make sure you add translations for all the languages. For example, if your target audience is Spanish and English, you need to make sure you define category and product names for both the Spanish and English languages using the admin interface.
-
Re: Ultimate SEO 2.200+ (new features)
hi
i have just downloaded this what file do i upload to my server am using 1.5.0 zencart
this is a fresh install of this and there is 4 files a licence file
1 file is affected_files_150
1 file is new_files_150
1 file is new files 150 czech
1 file is new file 150 english
this is a fresh install so nothing from this plugin has been installed before which of the 4 files do i upload to my server
thanks??
-
Re: Ultimate SEO 2.200+ (new features)
There are more then 4 files in those directories. Start by extracting the entire zip file.
Most plugins include a readme. This is always a good place to start with any new mod / plugin. The readme files include more information on how each of the four folders you mentioned are used.
In addition, I should note each of those four directories are organized further into "includes" and "your_admin_folder". Files under "includes" go into the "includes" folder of your Zen Cart installation. Files under "your_admin_folder" go into the admin folder of your Zen Cart installation.
From the README (English language) distributed in the zip file:
Code:
===========================================================
INSTALLATION INSTRUCTIONS
===========================================================
1. Copy files from `new_files_150` and `new_files_150_English` to your Zen Cart install
2a. If you haven't made changes to Zen Cart, Copy and replace files from `affected_files_150` 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
3. A sample .htaccess file is included. Simply rename to .htaccess and edit to match your site
4. Config the module in CONFIGURATION
For step three, see notes on the .htaccess file.
I would also highly recommend the following before making your Zen Cart installation live (and accessible to Search Engines).- Install any relevant patches released (after the version you are using was released)
- Finalize category and product names
- Configure the settings for "Ultimate SEO"
- Make sure the URLs match what you desire
-
Re: Ultimate SEO 2.200+ (new features)
after much tinkering on an install on a fresh 1.5 site which generated blank white pages, I have figured out that there are two files that are breaking the site:
/affected_files_150/includes/auto_loaders/config.ultimate_seo.php
/affected_files_150/includes/functions/html_output.php
Again, this is a fresh 1.5 install.
.htaccess path was modified.
Does anyone have any ideas?
Thank you,
-
Re: Ultimate SEO 2.200+ (new features)
I have installed 2.2 on a fresh 1.5 zencart. It breaks the site. After enabling/disabling one file at a time, I found the two files that are breaking the catalog side of the site:
affected_files_150/includes/functions/html_output.php
includes/auto_loaders/config.ultimate_seo.php
the path in the .htaccess file has been modifed.
Does this give anyone a clue in how I can continue troubleshooting?
the site is at www.custombookmarker.com
thank you!
-
Re: Ultimate SEO 2.200+ (new features)
NOTICE & WARNING
This module was written with compatibility for Zen Cart 1.5.0. Optional support was included for Query Cache from Data Diggers based upon a branch of Query Cache 1.9 Alpha.
A different implementation of Query Cache has been included in the Zen Cart 1.5.1 release. The Zen Cart 1.5.1 version of Query Cache does not include a function vital to the operation of Ultimate SEO. Due to the code changes in Query Cache this plugin does not work w/ Zen Cart 1.5.1.
I am currently working on making some changes to this plugin (and also modifying the stock Zen Cart 1.5.1 version of Query Cache) to address the issues. I will also be rolling the latest patches, fixes, and updates from my development version of Ultimate SEO into the next release of the plugin.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lhungil
NOTICE & WARNING
This module was written with compatibility for Zen Cart 1.5.0. Optional support was included for Query Cache from Data Diggers based upon a branch of Query Cache 1.9 Alpha.
A different implementation of Query Cache has been included in the Zen Cart 1.5.1 release. The Zen Cart 1.5.1 version of Query Cache does not include a function vital to the operation of Ultimate SEO. Due to the code changes in Query Cache this plugin does not work w/ Zen Cart 1.5.1.
I am currently working on making some changes to this plugin (and also modifying the stock Zen Cart 1.5.1 version of Query Cache) to address the issues. I will also be rolling the latest patches, fixes, and updates from my development version of Ultimate SEO into the next release of the plugin.
Thanks for your response. do you have a general idea of when that might be?
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
styledata
Thanks for your response. do you have a general idea of when that might be?
Zen Cart 1.5.1 was released 18 Sep 2012 - basically yesterday! :D
Keep in mind as part of the next release I will be including changes to the underlying database abstraction layer of Zen Cart as well as modified versions of the Query Cache present in Zen Cart 1.5.1. Since these updates change how the entire application (Zen Cart) will access the database, I do want to take some time to test my changes.
Before I release the next public version I will be releasing a beta version to anyone interested in helping test the changes. Once any bugs found during beta testing are fixed, I will make a public release. I am hoping to have a beta version ready to go tonight or tomorrow. If no major issues show up during beta testing you can probably expect a public release sometime next week.
DONE LIST
- Update ZC 1.5.1 implementation of Query Cache
- Update ZC 1.5.1 MySQL Query Factory
- Product Cache Generation patch applied
- Product Types Cache patch applied
- Test on clean Zen Cart 1.5.0
- Test on heavily modified Zen Cart 1.5.0
TODO LIST
- Remove hard coded table names from SQL Queries
- Test on clean Zen Cart 1.5.1
- Test on heavily modified Zen Cart 1.5.1
-
Ultimate SEO URLs 2.206 soon to be released!
Status Update
I have finished coding the necessary changes and have completed testing against:- Clean 1.5.0
- Clean 1.5.1
- Clean 1.5.0
- Production 1.5.0 + Custom Product Types + Edit Orders 4.0 + Admin New Order RC1.1 + Admin New Customer 1.0 + Price Markup + Drop Shipping + Freight Accessorials + YRC Drop Shipping + UPS Drop Shipping + Other Modules
- Development 1.5.1 + Custom Product Types + Edit Orders 4.0 + Admin New Order RC1.1 + Admin New Customer 1.0 + Price Markup + Drop Shipping + Freight Accessorials + YRC Drop Shipping + UPS Drop Shipping + Other Modules
I will be uploading the new version tomorrow for approval.
Changes
The following is taken from the English release notes.
- Enhancement: Support for Zen Cart 1.5.1
- Enhancement: Updated Zen Cart 1.5.1 Query Cache to add the ability to remove an item from the cache before expiration.
- Enhancement: Updated Zen Cart 1.5.1 MySQL query_factory to always return a value from the "Execute()" method.
- Enhancement: Updated Zen Cart 1.5.1 MySQL query_factory to provide better support for cached values.
- Enhancement: Updated htaccess_sample to include a line supporting linked products when "categories as directories" is enabled.
- Enhancement: Included the handler for Custom Product Types.
- Bugfix: Removed hardcoded table names. Installations with database prefixes will now work.
- Bugfix: The Product Cache is now generated correctly for multi-language (and non-english language) Zen Carts.
-
Re: Ultimate SEO URLs 2.206 soon to be released!
Ultimate SEO demo site:
http://demo.zen-cart.cn
-
EZ-Pages Multi-Lingual Patch
Affected Environments
This affects users with multiple languages installed. Without this patch, EZ-Pages may not load the correct page based upon language.
Credits
Thanks to neteasy for finding this bug and submitting a patch.
Notes
The needed changes will be incorporated in the next release.
-
Ultimate SEO URLs 2.207!
Notes
The next version includes a number of enhancements to the Zen Cart 1.5.1 implementation of "Query Cache" and the handling of the Zen Cart 1.5 "file" / "database" cache. Please backup your installation and database before installing version 2.207 of "Ultimate SEO".
The latest version is awaiting review / approval to be added to the plugin section of the Zen Cart website. Please be patient and while you are waiting think about donating to the Zen Cart team!
Updates / Fixes
- Removed hardcoded table names. Installations with database prefixes will now work.
- The Product Cache is now generated correctly for multi-language (and non-english language) Zen Carts.
- Support for "Multi-Language EZ Pages" plugin.
Enhancements / New Features
- Included the handler for Custom Product Types. This will look at requests to display a product and load the correct handler based upon the product type.
- Updated htaccess_sample. Includes a new line to better support linked products when as directories is enabled. Basically the line passes the category path to Zen Cart so "Ultimate SEO" does not need to fall back to using the product_master_category_id.
- Updated ZC 1.5.1 Query Cache to add the ability to remove an item from the cache before expiration.
- Updated ZC 1.5.1 MySQL query_factory to always return a value from the "Execute()" method.
- Updated ZC 1.5.1 MySQL query_factory to provide better support for cached values.
-
Re: Ultimate SEO URLs 2.207!
Hope this is the correct place to post this support question.
his plugin works perfectly on the site I am setting up (Yarnstyle.com, Zen 1.5.0) EXCEPT for the add to cart functionality is not working. :)
I suspect it is something I need to change in the .htaccess file....it currently looks like this:
Code:
##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# From Ultimate SEO URLs
RewriteRule ^(.*)-c-([^/])/(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$4&cpath=$2 [L]
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]
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 [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]
All of the demo sites for this plugin seem to have a url that looks like this when you click add to cart:
/index.php?main_page=shopping_cart&number_of_uploads=0
On our site, it looks like this:
http://yarnstyle.com/bernat-c-1/sash...product&cpath=
I have verified the add to cart button works when I turn this plugin off so it has something to do with this installation. Any advice on where I should look to make changes?
-
Re: Ultimate SEO URLs 2.207!
Would this mod will help the search engines to find your more or less?
-
Re: Ultimate SEO URLs 2.207!
Quote:
Originally Posted by
craftideasweekly
All of the demo sites for this plugin seem to have a url that looks like this when you click add to cart:
/index.php?main_page=shopping_cart&number_of_uploads=0
On our site, it looks like this:
http://yarnstyle.com/bernat-c-1/sash...product&cpath=
I have verified the add to cart button works when I turn this plugin off so it has something to do with this installation. Any advice on where I should look to make changes?
For all of the demo sites I've seen, including my stock 1.5.0 and 1.5.1 test sites, and my development site (lots of modules, different templates, etc) If you pull up the source and look at the "Form Action" you will see a URL like the first one you listed. This is the correct URL.
If you want to verify, you can take a look at "init_includes/init_cart_handler.php". This file handles some prep work (such as setting up parameters for a redirect to the shopping cart if configured). See also "Admin -> Configuration -> My Store -> Display Cart After Adding Product". It then loads main_cart_actions.php to handle the action "add_product". The shopping cart class then adds the product and redirects the request.
Your .htaccess file looks okay, although you can safely remove the [NC] from:
Code:
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
Take a look for any debug files generated in your log directory (the cache directory in 1.5.0). Anything there? These typically will show you if an error occurred.
Looking at your site, it looks like your installation (including modifications to templates and installed modules) does not appear to ever add the product to the cart. As "action=add_product" has been added to the end of the URL it should be triggering the code in both init_cart_handler.php and main_cart_actions.php.
Have changes been made to "init_cart_handler.php", "main_cart_actions.php", or "config.core.php"?
-
Re: Ultimate SEO URLs 2.207!
Quote:
Originally Posted by
morrisgiftshop
Would this mod will help the search engines to find your more or less?
If you want to discuss Search Engine related topics, please use the Search Engines section of the forum. There are a large number of topics and discussions on how to optimize your site for search engines. A couple of threads at a glance: Custom rewrites for on page seo, Key words in URL, and basic operation for SEO.
This thread should be used for support and version announcements of "Ultimate SEO URLs" only.
-
Re: Ultimate SEO URLs 2.207!
Quote:
Originally Posted by
lhungil
For all of the demo sites I've seen, including my stock 1.5.0 and 1.5.1 test sites, and my development site (lots of modules, different templates, etc) If you pull up the source and look at the "Form Action" you will see a URL like the first one you listed. This is the correct URL.
Just to clarify, I've added some example URLs found in the "form action" for adding a product to a URL. The log files and / or looking at the files I mentioned earlier should hopefully help you narrow down where things in your installation are broken.
Some examples
Code:
http://demo.zen-cart.cn/hewlett-packard-sale-with-attributes-on-sale-p-60.html?action=add_product&number_of_uploads=0
http://www.earth.local/store/dvd-movies-c-3/cartoons-c-3_13/a-bugs-life-linked-p-8.html?action=add_product
http://www.earth.local/zen-cart-v1.5.1/hardware-c-1/keyboards-c-1_8/microsoft-internet-keyboard-ps2-p-25.html?action=add_product&cpath=1
http://www.prom-mart.com/demo-1/index.php?main_page=product_info&cPath=1_4&products_id=1&number_of_uploads=0&action=add_product
-
Re: Ultimate SEO URLs 2.207!
Quote:
Originally Posted by
craftideasweekly
This plugin works perfectly on the site I am setting up (Yarnstyle.com, Zen 1.5.0) EXCEPT for the add to cart functionality is not working. :)
I suspect it is something I need to change in the .htaccess file....
I have verified the add to cart button works when I turn this plugin off so it has something to do with this installation. Any advice on where I should look to make changes?
I was finally able to duplicate this in one of my environments (only took me three days and lots of settings changing). My apologies: you were right, the culprit is in the .htaccess file.
Change:
Code:
RewriteRule ^(.*)-c-([^/])/(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$4&cpath=$2 [L]
To
Code:
RewriteRule ^(.*)-c-([^/])/(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$4&cpath=$2&%{QUERY_STRING} [L]
-
HTACCESS Update / Patch
Affected Environments
Everyone, especially those running with "Categories as Directories". Everyone should update their .htaccess file accordingly.
Credits
Thanks to craftideasweekly for finding this bug.
Notes
The needed changes will be incorporated in the next release. In the meantime you can download and examine a copy of the new .htaccess sample file.
-
Re: HTACCESS Update / Patch
htaccess Update / Patch Preview
-
Re: HTACCESS Update / Patch
Quote:
Originally Posted by
lhungil
Affected Environments
Everyone, especially those running with "Categories as Directories". Everyone should update their .htaccess file accordingly.
Credits
Thanks to craftideasweekly for finding this bug.
Notes
The needed changes will be incorporated in the next release. In the meantime you can download and examine a copy of the new .htaccess sample file.
Thank YOU!!! I had tried your other suggestions and figured I was missing something and turned the plugin off.
I'll add this to the .htaccess file, re-activate the plugin, and confirm it fixes the issue.
thanks again,
Molly
-
Re: HTACCESS Update / Patch
Confirmed -- the new .htaccess file worked like a charm! Thank you again!!:)
-
Re: HTACCESS Update / Patch
Everything is working for me except the "Buy Now" buttons on the product list page. I get exactly the same link for every product:
Code:
http://site/categoryname-c-1/?action=buy_now&sort=20a
Clicking the link just takes you to an empty cart, which makes sense since there's no product ID to pass. Turning off SEO makes the links work:
Code:
http://site/index.php?main_page=index&cPath=1&sort=20a&action=buy_now&products_id=2
I'm running 1.5.0 and I've re-copied the Ultimate SEO just to make sure I had the right files and versions. I am using the updated .htaccess (but this doesn't look like an .htaccess problem). Turning on/off pretty much every option in SEO URLs doesn't affect it.
Am I the only one with this issue? Any solutions? Thank you!
-
Re: HTACCESS Update / Patch
I recall someone having this or a similar problem some time back. His add to cart button from category product lisings did not work properly with Ultimate SEO. I think it was on the Search Engines forum. I spent a bit of time trying to find thread but couldn't. I don't think it was in the Ultimate SEO thread here:
http://www.zen-cart.com/showthread.p...imate-SEO-URLs
I recall it being a separate thread and don't recall if there was ever a solution.
BTW, it helps if you give the forum a link or text address to see your site. Sometimes someone might see the problem. Possibly other plugins or even templates (TM?) might be the cause of problems.
-
Re: HTACCESS Update / Patch
Here's another link (not the one I referenced) where someone had an add to cart problem with Ultimate SEO:
http://www.zen-cart.com/showthread.p...seo+add+button
Looks like site went back to dynamic urls. Also, is a TM template which may have been a factor in the problem.
-
Re: HTACCESS Update / Patch
Can you post the contents of your .htaccess, a screen shot of your current settings for "SEO URLs", a list of plugin / modules installed, and a link to your site please? Also do you see this behavior when using the template / theme Zen Cart comes with?
I am especially interested in the following lines from your .htaccess.
Code:
RewriteBase /shop/
# 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]
Those two lines are vital as they ensure "action=add_product" is sent to Zen Cart. The order the rules are listed in the .htaccess file are also important.
-
Re: HTACCESS Update / Patch
The previous fix was for the regular "buy" button on product pages. I will take a look at the "buy now" button in product listings as soon as I can.
-
Buy Now / Add Selected Products To Cart - Patch
Affected Environments
Stores using the "Buy Now" links or "Add selected products to cart" feature on product listing pages.
Credits
Thanks to adamells for finding this bug.
The fix
Starting at line 418 in "includes/classes/seo.url.php" change:
Code:
// case ($page == FILENAME_PRODUCT_INFO && !$this->is_attribute_string($params)):
to:
Code:
case ($page == FILENAME_DEFAULT):
$container[$p2[0]] = $p2[1];
break;
Notes
I tested this change against both clean and modified Zen Cart 1.5.0 and 1.5.1 installations.
-
Re: Buy Now / Add Selected Products To Cart - Patch
I installed Ultimate SEO Url's tonight and first off got a 500 error on my website and also on the admin. Changed Rewrite Engine to Off and now my homepage and admin work but any other page on my website gets a 404 error. I tried changing all the setting on the plugin in the admin but my site only works if I change the Enable SEO Urls to off. Not sure what I did wrong or what code I didn't add to .htaccess. I didn't previously have a .htaccess for my site because it is pretty new and I wanted to get the plugin's installed before I add all the security functions. This is my website maybe you could spot something http://www.luckylaketackle.com. Any help would be greatly appreciated. Thank you so much for your help.
-
Re: Buy Now / Add Selected Products To Cart - Patch
Now I got those to work by adding
Options +FollowSymLinks
RewriteEngine on
RewriteRule index-main_page-(.*)-cPath-(.*)\.html$ index.php?main_page=$1&cPath=$2
I just went to a URL Rewriting website and put a path to one of my products in it and it wrote this out for me. Not sure why this works? This .htaccess file is really confusing to me.
Ok now I took out that code and just replace the top of the .htaccess file to
Options +FollowSymLinks
RewriteEngine on
It seems like the RewriteEngine On caused a problem with a capital O. Not sure why this made a huge difference.
-
Re: Buy Now / Add Selected Products To Cart - Patch
Quote:
Originally Posted by
timbojrjr1
It seems like the RewriteEngine On caused a problem with a capital O. Not sure why this made a huge difference.
Thank You for letting us know both the issue you ran into and what the fix was for your server environment.
Some servers are more picky then others (depends on the web server, what version, who compiled, if a htaccess scanner was used, etc). I have not seen any problems using "On" on multiple test sites running apache2 (with and without a .htaccess scanner) and IIS (with a filter to use .htaccess files)... But for compatibility I'll probably switch to just "on" as lowercase when I release an example .htaccess in the future just to be safe (Apache2 documentation uses lowercase).
-
Re: Back Link Debugging
Lat9 just posted an interesting thread on the forums. While looking through the code for page_not_found, he noticed it does not exclude the page from being added to the navigation history!
I would venture any sites which have been plagued by the "back button glitch" causing the button to send a user to "page_not_found" may actually be caused by having a broken js, css, image, or other resource! Any 404 will go to this page (yes even missing resources) when you have enabled "Ultimate SEO URLs" (and potentially other re-writer's).
http://www.zen-cart.com/showthread.p...gation-history
Applying the fix in post #1 from Lat9 appears to work in my environment when I purposely add a reference to a missing resource. Of course, if the fix works for you, you may want to look around in your theme and pages (or server logs) to find and fix the missing (or broken) resource.
-
Updated Example .htaccess
Example .htaccess
I have been working on a new example .htaccess file. It is working correctly in my test environments: Linux, PHP 5.2 and 5.3, Zen Cart 1.5.0 and 1.5.1.
The changes in this file are still in testing. If you have a working site with this plugin already, make sure you backup the existing .htaccess before trying the changes shown here.
Keep in mind after you change the .htaccess you may need to clear your browser cache to see everything in action. When changing some settings (such as "categories as directories") in the admin configuration you will need to edit the .htaccess and may wish to also reset the SEO Cache to see the changes immediately.
Added Support
Some performance enhancements, more exact matching, and better handling of 301s after changing settings in both the admin configuration and the .htaccess file.
Removed Support
This version of "Ultimate SEO URLs" does not support Zen Cart 1.3.x. The 1.3.x versions of "Ultimate SEO URLs" included in the .htaccess file examples for "Open Operations Info Manager" or "Dreamscape's News & Articles Manager". These have been removed from the .htaccess file because the plugins are not readily availability for Zen Cart 1.5.x.
File Contents
Code:
##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /shop/
# 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]
-
Re: Updated Example .htaccess
New example .htaccess seems to be working for me:
prommart com
Thanks!
-
Re: Updated Example .htaccess
Back Button glitch fix mentioned in post # 57 also working for me. Thanks again!
-
Re: Ultimate SEO 2.200+ (new features)
I am using zen cart 1.50.
I have installed Ultimate SEO URLs 2.150 for Zen Cart 1.5.0 and everything seems to be working great except that the categories are not displaying in the url.
For example this http://petalsremembered.com/Gifts/ddd-p-866182.html
should be
http://petalsremembered.com/Gifts/Co...-p-866182.html
I have turned on "Show categories as directories in the URL?" but it isn't working. Does anyone have any experience using this with zencart 5.0. Everything I can find is for older versions.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
timhersh
I am using zen cart 1.50.
I have installed Ultimate SEO URLs 2.150 for Zen Cart 1.5.0 and everything seems to be working great except that the categories are not displaying in the url.
I have turned on "Show categories as directories in the URL?" but it isn't working. Does anyone have any experience using this with zencart 5.0. Everything I can find is for older versions.
The "Show categories as directories" option is not valid for "Ultimate SEO URLs" version 2.150. The option did not exist prior to version 2.200. Please remove the old version of "Ultimate SEO URLs", install the latest version (currently 2.207), and use the new .htaccess file posted earlier in this thread (with appropriate changes of course).
-
Re: Ultimate SEO 2.200+ (new features)
Thanks, is there a way to adjust the module (new or old version) so that it does display the categories in the url??
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
timhersh
Thanks, is there a way to adjust the module (new or old version) so that it does display the categories in the url??
Yes, this is already supported under Zen Cart 1.5 and the latest version of "Ultimate SEO URLs".
You will need to a) go into "admin" -> "configuration" -> "SEO URLs" and adjust the settings and b) modify your .htaccess file to match the settings.
Versions of "Ultimate SEO URLs" > 2.200 have three modes of operation:
1. Normal ("category parent": false, "category as directory": false)
- Category Pages: category-name-c-34.html
- Product Pages: product-name-p-54.html
2. Category Parent ("category parent": true, "category as directory": false)
- Category Pages: parent-name-category-name-c-34.html
- Product Pages: product-name-p-54.html
3. Category as Directory ("category as directory": true)
- Category Pages: category-name-c-34/
- Product Pages: category-name-c-34/product-name-p-54.html
If you have any linked products and use option 1 or 2: make sure to enable "Add cPath to product URLs".
If you are using option 3 you can leave "Add cPath to product URLs" disabled.
-
Re: Ultimate SEO 2.200+ (new features)
Thank you,
New problem now. I have installed this on another domain. Once I turn it on the new links are pulling up error "not found" pages.
Any idea what it might be? The normal page (that works) is this http://ie-proofs.com/domo-online.com...&products_id=3
The page that shows up once I turn it on is this-404 Page not Found error is what I get, on all of the pages.
http://ie-proofs.com/domo-online.com...3.html?cPath=1
I'm using Ultimate SEO URLs v2.200. here is my .htaccess file
Code:
##### NOTE: Replace /Outboard-Motor-Oil/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /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]
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 [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]
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
timhersh
Thank you,
New problem now. I have installed this on another domain. Once I turn it on the new links are pulling up error "not found" pages.
I'm using Ultimate SEO URLs v2.200.
Start by installing the latest version. I know I've said this more than once now.
Once you have installed the latest version of this plugin, then go and install the latest .htaccess file.
From the behavior you are pointing out I would guess you did not get the .htaccess file installed correctly. Where did you install the .htaccess file? Does your server support .htaccess files? Did you try using the full relative web path (/domo-online.com/Outboard-Motor-Oil/)?
-
Re: Ultimate SEO 2.200+ (new features)
Bingo, that was it, I changed it to domo-online.com/Outboard-Motor-Oil in the .htaccess file and it works great
thanks,
-
Re: Ultimate SEO 2.200+ (new features)
-
Re: Ultimate SEO 2.200+ (new features)
I just installed Ultimate SEO URLs over a fresh ZC 1.5 installation and I can't access the Admin menus! What it does it's just a blank page! Just to make sure it worked I renamed all the original files that have to be replaced ... BTW my .htaccess file is configured, but no URLs are being rewritten ...
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
icecold
I just installed Ultimate SEO URLs over a fresh ZC 1.5 installation and I can't access the Admin menus! What it does it's just a blank page!
This usually indicates something was missed during the installation (often the administration side defines) - or a corrupted upload. Did you look through the Zen Cart debug logs? Have you tried the steps in this article to determine where things broke?
If you still cannot find where things are going wrong, please answer the following:
Provide more details about your Zen Cart installation (how you installed, version, other plugins, etc).
Provide a detailed walk through of the complete step by step process you followed to install the plugin.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lhungil
No problem :)
Ok last question.
Everything is working great except I can not get the ez pages to pull up. Typically I enter this to see the first ez page, no matter what I enter though it won't rewrite it or pull it up, any ideas?
http://ie-proofs.com/domo-online.com...page=page&id=1
-
Re: Ultimate SEO 2.200+ (new features)
Your Zen Cart installation does not appear to be working anymore (I cannot even get to your main landing page), was something changed recently? I remember being able to access the site Thursday night.
Quote:
Originally Posted by
timhersh
Everything is working great except I can not get the ez pages to pull up.
By default EZ-Pages are rewritten as long as "page" is included in the list at "Enter pages to allow rewrite".
If using the "Internal Link" feature with EZ-Pages, these are hard-coded, so you will need to change the value. For example to change "Privacy Notice" under the demo store you need to to to "admin" -> "tools" -> "ez-pages" and select "Privacy Notice" and click "edit". Once on the page to edit "Privacy Notice", change the value in the input field labeled "Internal Link URL" from "index.php?main_page=privacy" to "privacy.html".
-
Re: Ultimate SEO 2.200+ (new features)
The only difference between my former installation and the new one is that ALL files that needed to be replaced are now renamed ... that's it.
I checked every single file path to be sure everything was fine ...
I will do it one more time anyway ... but the only thing that is custom is the template ... nothing else, and that is not affecting the store front, looks fine aside from the fact the URLs are not rewritten ...
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
icecold
The only difference between my former installation and the new one is that ALL files that needed to be replaced are now renamed ... that's it.
I checked every single file path to be sure everything was fine ...
I will do it one more time anyway ... but the only thing that is custom is the template ... nothing else, and that is not affecting the store front, looks fine aside from the fact the URLs are not rewritten ...
just checked again just to be sure, as I said is a fresh install ZC 1.5 ... Only a template besides the original package ...
-
Re: Ultimate SEO 2.200+ (new features)
i checked the debug and there's a missing class! It supposed to be created as there is a seo.install.php class in FS includes, but for some unknown reason it's not instantiating it! ??
This is the error I got from debug ... it clearly shows the class is not instantiated ...
Quote:
[28-Oct-2012 10:20:02] PHP Warning: include_once(/home2/seasonbr/public_html/trade/includes/classes/seo.url.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home2/seasonbr/public_html/trade/AdminNW/includes/functions/html_output.php on line 62
[28-Oct-2012 10:20:02] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home2/seasonbr/public_html/trade/includes/classes/seo.url.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/seasonbr/public_html/trade/AdminNW/includes/functions/html_output.php on line 62
[28-Oct-2012 10:20:02] PHP Fatal error: Class 'SEO_URL' not found in /home2/seasonbr/public_html/trade/AdminNW/includes/functions/html_output.php on line 64
As you can see above it's asking for seo.url.php class, which supposed to be instantiated, but for some reason I really don't know, it's not ...
So how can I go around this?
Please note:
- This is a fresh ZC 1.5 install without any plug ins only a template
- The template itself has built-in plugins and executes jQuery
- The front end looks fine the error is just in the Admin
- As a result, I don't have any access to admin to change the template to rhe default >>> the Admin fails to open and there are no options to switch back
- I asked the template author to see if there are any known issues with Ultimate SEO URLs, no response yet
-
Re: Ultimate SEO 2.200+ (new features)
Thank you for replying.
The issue of the main landing page not showing is something different. I haven''t figured it out yet but for some reason it won't show the bottom of the default main_page so I have it redirected to go here for the home page, for now. http://ie-proofs.com/domo-online.com/ Not sure what the issue is
BUT
if I go to the default template it shows just fine.
All the other pages I need are working just fine in my custom template though, the only thing (besides the default main page) I can't get it to show is the E-Z Pages. BUT the E-Z pages are working (the redirect link) if I have the default template on.
For example these work just great
http://ie-proofs.com/domo-online.com...3.html?cPath=1
http://ie-proofs.com/domo-online.com.../yamalube-c-4/
http://ie-proofs.com/domo-online.com...ppinginfo.html
****
I do have 'page' listed in my list of pages to rewrite, here is what I have
Quote:
index, product_info,page,products_all, products_new, featured_products, specials, contact_us, conditions, privacy, reviews, shippinginfo, faqs_all, site_map, gv_faq, discount_coupon.page, page_2, page_3, page_4
THIS LINK THOUGH- will not work when my template is on http://ie-proofs.com/domo-online.com...age-ezp-1.html Really would like to make it work. Would prefer to use the EZ page for my home page. I'm not using the internal links..thank you for any assistance you can provide......
-
Re: Ultimate SEO 2.200+ (new features)
Timhersh,
I just made an ezpage to see if I had a problem, and do not:
http://www.prommart.com/ez-page-test...eo-ezp-11.html
My ezpage is linked from my footer.
Mine is a 1.5.1 cart with whatever the default Ultimate SEO installation is for ezpages...I didn't do anything in my SEO admin re ezpages.
BTW, since you are using the categories as directories option...which includes the category in the product url...I don't think you need the cPath at the end of the product url? For me, since I don't include the categories in my setting, I do enable the cPath option at the end of the product url since I'm using linked products.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
timhersh
If I go to the default template it shows just fine.
All the other pages I need are working just fine in my custom template though, the only thing (besides the default main page) I can't get it to show is the E-Z Pages. BUT the E-Z pages are working (the redirect link) if I have the default template on.
If everything works correctly with the default template but fails with your custom templates... the problem will be something with your custom template. Not with "Ultimate SEO URLs".
If you purchased the template and are modifying it, you may want to check with the author of the template and ask them what modifications were made to ezpages. It may save you some time.
You will want to look through your custom template for every reference to "page" and "ezpage" as this is where EZ-Page content is handled. You will need to check under both the templates area and the modules area (custom templates can have overrides in here).
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
icecold
The only difference between my former installation and the new one is that ALL files that needed to be replaced are now renamed ... that's it.
Did you make sure the renamed files do NOT end with .php?
Quote:
Originally Posted by
icecold
i checked the debug and there's a missing class! It supposed to be created as there is a seo.install.php class in FS includes, but for some unknown reason it's not instantiating it! ??
The error message is "Failed opening '/home2/seasonbr/public_html/trade/includes/classes/seo.url.php'". If PHP cannot load the file, it cannot instantiate the class contained in the file.
This error message indicates "Ultimate SEO URLs" was not properly installed. Based upon that error message I can see some files were not copied over. You really need to completely re-install "Ultimate SEO URLs" at this point, not just copy over files as you find they are missing. If you followed all the steps listed in the installation file (and are really using a clean installation of Zen Cart 1.5 using the installation scripts included with Zen Cart) you should not be seeing these kind of error messages.
Detailed Installation Steps
This list assumes you truly have a clean Zen Cart installation. No other plugins or modules installed. No other changes made. No extra php files. You installed Zen Cart using the instructions and installation scripts provided with Zen Cart not 3rd party ones. You just finished the installation and renamed your admin folder.
- Determine which version of Zen Cart you installed. You still have not told us if you are using 1.5.0 or 1.5.1. These versions are not the same and have different files. So just saying 1.5 is not sufficient.
- Download the latest version of "Ultimate SEO URLs" from http://www.zen-cart.com/downloads.php?do=file&id=132.
- Unzip the archive to your local computer. Yes to your local computer. Make sure you are using a program to unzip the files which understands paths (directories). If your local computer is running Windows you can use the built in unzip utility. Otherwise look into a program such as 7-zip (free, opensource).
- Open and read "LICENSE". Everyone using this module or modifications of this module are subject to the license agreement. If you do not agree you cannot use this module or modifications of this module.
- Open and read "README_ENGLISH.txt". Yes you really should always read any document packaged with a module. This document contains the short form of these instructions suitable for anyone who understand Zen Cart to install this module.
- Now you remember when I said is was important to know what version of Zen Cart you have installed, right? Here is where you use the version information. Go to the instructions for copying files to your Zen Cart installation. When you are done come back here and continue.
- Open your web browser. Go to the administrative side of your Zen Cart installation. Now login with your administrative user.
- Go to "configuration" -> "Ultimate SEO URLs". Change the settings to match your needs and wants.
- Edit the example .htaccess file in this thread to match your settings and environment. Make sure you actually read the instructions in the .htaccess file before and during editing. Once done editing, upload the .htaccess file to your Zen Cart installation folder.
Copying files to a clean Zen Cart 1.5.0 installation
First and foremost always use a proper upload tool such as WinSCP. Do not use an online "file manager" or "dreamweaver". If any changed files have been changed by another plugin or template you install, your Zen Cart installation is NOT clean and you will have to "merge" the changes instead of following these steps.
- Copy the files (including directory paths) from "new_files_150/includes" and "new_files_150_English/includes" to your Zen Cart installation under "/includes".
- Copy the files (including directory paths) from "new_files_150/your_admin_folder" and "new_files_150_English/your_admin_folder" to your Zen Cart installation under your admin folder (assuming you followed the instructions for installing Zen Cart and renamed the admin folder).
- Overwrite the files (including directory paths) from "affected_files_150/includes" to your Zen Cart installation under "/includes".
- Overwrite the files (including directory paths) from "affected_files_150/your_admin_folder" to your Zen Cart installation under your admin folder.
- Overwrite the file from "affected_files_150/index.php" to your Zen Cart installation.
- Now return to where you left off in the first list.
Copying files to a clean Zen Cart 1.5.1 installation
First and foremost always use a proper upload tool such as WinSCP. Do not use an online "file manager" or "dreamweaver". If any changed files have been changed by another plugin or template you install, your Zen Cart installation is NOT clean and you will have to "merge" the changes instead of following these steps.
- Copy the files (including directory paths) from "new_files_151/includes" and "new_files_151_English/includes" to your Zen Cart installation under "/includes".
- Copy the files (including directory paths) from "new_files_151/your_admin_folder" and "new_files_151_English/your_admin_folder" to your Zen Cart installation under your admin folder (assuming you followed the instructions for installing Zen Cart and renamed the admin folder).
- Overwrite the files (including directory paths) from "affected_files_151/includes" to your Zen Cart installation under "/includes".
- Overwrite the files (including directory paths) from "affected_files_151/your_admin_folder" to your Zen Cart installation under your admin folder.
- Overwrite the file from "affected_files_151/index.php" to your Zen Cart installation.
- Now return to where you left off in the first list.
Still having problems
If after following all these instructions you still cannot get this plugin working I would highly recommend you hire a developer familiar with Zen Cart to install and configure your site for you. Installation of this plugin is relatively straight forward and very similar to installing any other Zen Cart module / plugin.
Installing more than one plugin / module often involves using a tool such as WinMerge or Beyond Compare to "merge" the changes made by each plugin. If your "template developer" changed core Zen Cart files you will need to do a merge of any files both modified, not just replace the files. If you are not familiar with PHP, MySQL, and Zen Cart this can be a daunting task.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
icecold
i checked the debug and there's a missing class! It supposed to be created as there is a seo.install.php class in FS includes, but for some unknown reason it's not instantiating it! ??
This is the error I got from debug ... it clearly shows the class is not instantiated ...
As you can see above it's asking for seo.url.php class, which supposed to be instantiated, but for some reason I really don't know, it's not ...
So how can I go around this?
Please note:
- This is a fresh ZC 1.5 install without any plug ins only a template
- The template itself has built-in plugins and executes jQuery
- The front end looks fine the error is just in the Admin
- As a result, I don't have any access to admin to change the template to rhe default >>> the Admin fails to open and there are no options to switch back
- I asked the template author to see if there are any known issues with Ultimate SEO URLs, no response yet
BTW This is the list of AddOns the template has integrated:
Column Layout Grid, About Us Page, Footer Menu , Column Divider Pro, Designer Monthly Boxes, Pure CSS Mega Menu
-
Re: Ultimate SEO 2.200+ (new features)
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...page=page&id=1
BUT THIS DOESN'T
http://ie-proofs.com/domo-online.com...age-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
-
Re: Ultimate SEO 2.200+ (new features)
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...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?
-
Re: Ultimate SEO 2.200+ (new features)
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
===========================================================
Quote:
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
3. A sample .htaccess file is included. Simply rename to .htaccess and edit to match your site
4. 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!
-
Re: Ultimate SEO 2.200+ (new features)
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 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 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...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
-
Re: Ultimate SEO 2.200+ (new features)
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.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
timhersh
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).
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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!
Quote:
Originally Posted by
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.
-
Re: Ultimate SEO 2.200+ (new features)
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...page=page&id=1
won't pull up
http://ie-proofs.com/domo-online.com...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?
HTML Code:
##### 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]
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
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 ...
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
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.
-
Re: Ultimate SEO 2.200+ (new features)
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?
-
Re: Ultimate SEO 2.200+ (new features)
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?
-
Re: Ultimate SEO 2.200+ (new features)
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
-
Re: Ultimate SEO URLs 2.207!
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', 'c2VjdXJpdHlUb2tlbnxzOjMyOiJmYTFiYWQ0MWM2NTViYzliNGRhMmFlZWNlMjFlNzEwZCI7Y3VzdG9 tZXJzX2hvc3RfYWRkcmVzc3xzOjI4OiIxODQtOTgtMTk3LTc3LnBobngucXdlc3QubmV0IjtTU0xfU0V TU0lPTl9JRHxOO2NhcnRJRHxzOjA6IiI7Y2FydHxPOjEyOiJzaG9wcGluZ0NhcnQiOjc6e3M6ODoiY29 udGVudHMiO2E6MDp7fXM6NToidG90YWwiO2k6MDtzOjY6IndlaWdodCI7aTowO3M6MTI6ImNvbnRlbnR fdHlwZSI7YjowO3M6MTg6ImZyZWVfc2hpcHBpbmdfaXRlbSI7aTowO3M6MjA6ImZyZWVfc2hpcHBpbmd fd2VpZ2h0IjtpOjA7czoxOToiZnJlZV9zaGlwcGluZ19wcmljZSI7aTowO31uYXZpZ2F0aW9ufE86MTc 6Im5hdmlnYXRpb25IaXN0b3J5IjoyOntzOjQ6InBhdGgiO2E6MDp7fXM6ODoic25hcHNob3QiO2E6MDp 7fX1jaGVja192YWxpZHxzOjQ6InRydWUiO2xhbmd1YWdlfHM6NzoiZW5nbGlzaCI7bGFuZ3VhZ2VzX2l kfHM6MToiMSI7bGFuZ3VhZ2VzX2NvZGV8czoyOiJlbiI7Y3VycmVuY3l8czozOiJVU0QiO3RvZGF5X2l zfHM6MTA6IjIwMTItMTAtMjkiO3VwZGF0ZUV4cGlyYXRpb25zfGI6MTtzZXNzaW9uX2NvdW50ZXJ8Yjo xO2N1c3RvbWVyc19pcF9hZGRyZXNzfHM6MTM6IjE4NC45OC4xOTcuNzciOw==') 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
-
1 Attachment(s)
Re: Ultimate SEO URLs 2.207!
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
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
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:
Code:
define('HTTP_SERVER', 'http://www.zen-cart.com');
define('HTTPS_SERVER', 'https://www.zen-cart.com');
-
Re: Ultimate SEO URLs 2.207!
Quote:
Originally Posted by
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).
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
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.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
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:
Code:
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.
-
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
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>