Re: Chemo's Ultimate URL's
Thanks Azoka. We just took it live this afternoon. But the weird thing is if you click a link a few times, it will include the full url!
Here are my settings:
Enable SEO URLs? true
Add cPath to product URLs? false
Add category parent to begining of URLs? true
Filter Short Words 0
Output W3C valid URLs (parameter string)? true
Enable SEO cache to save queries? true
Enable product cache? true
Enable categories cache? true
Enable manufacturers cache? true
Enable articles cache? true
Enable information cache? true
Enable automatic redirects? false
Choose URL Rewrite Type Rewrite
Enter special character conversions
Remove all non-alphanumeric characters? false
Reset SEO URLs Cache false
Any help would be appreciated!
Re: Chemo's Ultimate URL's
Ha! I found the culprit! It is the mod to avoid the initial SID found here:
http://www.zen-cart.com/forum/showth...643#post273643
Apparently, it didn't play nice in IE. Too bad cause its a good mod.
I have my 1.2 site up for reference and I got surfing around and noticed the zenid query in the url and that is when I remembered!
Thanks anyway for your help!
Re: Chemo's Ultimate URL's
Glad to hear that you got it figured out and working.
Best of luck to you with your store.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by voltage
It is because that mod is loaded *before* the core language stuff is included, so if it triggers and you have SEO installed, then when it goes to redirect, the language will be 0, which of course is no language at all, and the SEO mod will not be able to find the names of products, categories, etc... hence no names showing in the URL when it is redirected.
If you change the load order to *after* the language stuff, then it should work fine. I think the language init order is 110.
Re: Chemo's Ultimate URL's
Hi Dreamscape,
That does make sense. I've looked at the init_sid_redirect but I can't seem to find what you are referring to:
Code:
<?php
/**
* ZC Initial Redirect - Remove Session ID from query string if cookies are enabled
*
* @package ZC Initial Redirect
* @author Eivind E. Valderhaug, {@link http://www.dataweb.no/net/contact/ contact the author}
* @copyright Copyright (C) 2006 Eivind E. Valderhaug
* @license {@link http://www.gnu.org/copyleft/gpl.html Gnu General Public License version 2 (dated June 1991)}
* @version SVN: $Id: init_sid_redirect.php 18 2006-09-28 14:35:37Z evalder $
*/
# this line is copied from init_sanitize.php (breakpont 100), in order to use breakpoint 75 instead (run as little code as possible)
if (!isset($_GET['main_page']) || !zen_not_null($_GET['main_page'])) $_GET['main_page'] = 'index';
# keep any post data after redirection
if (isset($_SESSION['_post']) && is_array($_SESSION['_post']))
{
if (count($_POST) === 0)
{
$_POST = $_SESSION['_post'];
}
unset($_SESSION['_post']);
}
# $_SERVER['QUERY_STRING'] is supposedly not automatically created on certain systems
# simulate the creation of $_SERVER['QUERY_STRING']
function dm_get_query_string($ampersand_encode = true)
{
$result = array();
foreach($_GET AS $key => $value)
{
$result[] = $key . ( $value != '' ? '=' . $value : '' );
}
if ($ampersand_encode === true)
{
return implode('&', $result);
}
return implode('&', $result);
} # end function dm_get_query_string
$_SERVER['QUERY_STRING'] = dm_get_query_string(false);
$session_id = session_id();
$session_name = session_name();
switch (true)
{
case ($session_id == ''):
# a session has not been started, so don't do anything
break;
case (!isset($_SESSION['prev_request_type']) || $_SESSION['prev_request_type'] != $request_type):
# this is either the initial hit or we're switching between SSL and NON-SSL
# make sure the sid is in the query string
$_GET[$session_name] = $session_id;
$_SERVER['QUERY_STRING'] = dm_get_query_string(false);
# remember this request type - if we change from/to SSL we need to recheck that a cookie has been set
$_SESSION['prev_request_type'] = $request_type;
# remember any posted data
$_SESSION['_post'] = $_POST;
session_write_close();
# redirect to self with the SID in the query string
zen_redirect(zen_href_link($_GET['main_page'], zen_get_all_get_params(), ($request_type == 'SSL' ? 'SSL' : 'NONSSL'), true));
case (isset($_COOKIE[$session_name])):
# cookies are enabled
if (isset($_GET[$session_name]) && $_GET[$session_name] != '')
# a SID is in the query string
{
# remove the SID from the query string
unset($_GET[$session_name]);
$_SERVER['QUERY_STRING'] = dm_get_query_string(false);
# remember any posted data
$_SESSION['_post'] = $_POST;
# end session
session_write_close();
# redirect with clean query string
zen_redirect(zen_href_link($_GET['main_page'], zen_get_all_get_params(), ($request_type == 'SSL' ? 'SSL' : 'NONSSL')));
}
default:
# remember this request type - if we change from/to SSL we need to recheck that a cookie has been set
$_SESSION['prev_request_type'] = $request_type;
break;
}
?>
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by voltage
Hi Dreamscape,
That does make sense. I've looked at the init_sid_redirect but I can't seem to find what you are referring to:
Wrong file. Its auto load order is set in the file that goes in the auto_loaders folder ;)
Re: Chemo's Ultimate URL's
Unfortunately I still have not been able to figure out why my information pages return a 404 since installing the SEO URLs.
Does anybody have any ideas?
Re: Chemo's Ultimate URL's
Aha! I checked the core auto_loader file for languages and it was indeed 110. For the sid file I changed it to 115 and it appears to be working great.
Thanks!
Quote:
Originally Posted by dreamscape
Wrong file. Its auto load order is set in the file that goes in the auto_loaders folder ;)
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by BlessIsaacola
Is anyone experiencing any problem with this mod and login issues? As of recent we've been experiencing period issues with login where our customers are not able to login to their account.
Any feedback is appreciated.
Dreamscape, any idea on what's causing the period issues with the login problem.
Basically, what happens is the customer clicks on long and after they entered their credential they are returned to the home page but they are not logged in and the url enter something like url/?sid id instead of including the file.htm before the sid id. This only happens with this mod enabled.
Thanks for any insight you might have.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by voltage
Aha! I checked the core auto_loader file for languages and it was indeed 110. For the sid file I changed it to 115 and it appears to be working great.
Thanks!
Voltage, IHMO I think you need a new button for your newsletter subsciption sidebox. Your site's design and look is so professional and very high quality and that button just seem to no belong (that button looks cheap compare to your site). Please don't take this in the wrong way.