Zen Cart Logo
Forums / All Other Contributions/Addons / Chemo's Ultimate URL's

Chemo's Ultimate URL's

Views: 493,242

Results 221 to 240 of 1,407
7 Oct 2006, 2:04 AM
#221
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Chemo's Ultimate URL's

In the .htaccess file when it says:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

does the url to the rewrite base have to be the full path? i.e. /server/myname/public_html/

or like I put it if the store is in the root directory? It all works except the forum link, however not even hardcoding is fixing that since I turned the SEO mod on.

thank you,

betty

7 Oct 2006, 2:12 AM
#222
akoza avatar

akoza

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

The RewriteBase is from your document root.

If your store is in your root folder then the RewriteBase will be /

However if your store is in a folder named catalog then the RewriteBase would be /catalog/

Does that help?

7 Oct 2006, 2:15 AM
#223
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Akoza:

The RewriteBase is from your document root.

If your store is in your root folder then the RewriteBase will be /

However if your store is in a folder named catalog then the RewriteBase would be /catalog/

Does that help?

Yes it does help, unfortunately...lol It means my file is correct. Back to the drawing board. :cry:

thank you,

betty

7 Oct 2006, 2:22 AM
#224
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

I lied. Click once with ie and it cuts the urls. Click 2x and it creates the correct url. Any ideas? This is so weird I have no idea where to even look.

voltage:

Reinstalled the files. Reset the SEO cache. it seems to now be working. :D

7 Oct 2006, 2:42 AM
#225
akoza avatar

akoza

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

voltage, you have a really nice looking site! :cool:

I just surfed through your site with Firefox and did not have a problem with the URLs cutting off. I'm about to check with IE now.

IE is indeed cutting off all but the last 8 or so characters of the full URL.

Did you change any of the default settings in Admin > Configuration > SEO URLs?

7 Oct 2006, 3:04 AM
#226
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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!

7 Oct 2006, 3:20 AM
#227
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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/showthread.php?p=273643#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!

7 Oct 2006, 4:13 AM
#228
akoza avatar

akoza

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

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.

7 Oct 2006, 7:22 AM
#229
dreamscape avatar

dreamscape

Totally Zenned

Join Date:
Nov 2003
Posts:
721
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

voltage:

Ha! I found the culprit! It is the mod to avoid the initial SID found here:

http://www.zen-cart.com/forum/showthread.php?p=273643#post273643

Apparently, it didn't play nice in IE. Too bad cause its a good mod.

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.

7 Oct 2006, 2:39 PM
#230
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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:

<?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;
}

?>
7 Oct 2006, 2:45 PM
#231
dreamscape avatar

dreamscape

Totally Zenned

Join Date:
Nov 2003
Posts:
721
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

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 ;)

7 Oct 2006, 3:20 PM
#232
akoza avatar

akoza

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

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?

7 Oct 2006, 5:56 PM
#233
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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!

dreamscape:

Wrong file. Its auto load order is set in the file that goes in the auto_loaders folder ;)

7 Oct 2006, 6:20 PM
#234
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

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.

7 Oct 2006, 6:22 PM
#235
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

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.

7 Oct 2006, 6:56 PM
#236
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Chemo's Ultimate URL's

I agree 100%. I added that sidebox just recenlty and was pressured to make the site go live. Thanks for the compliments. :D

BlessIsaacola:

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.

7 Oct 2006, 7:44 PM
#237
smackjams avatar

smackjams

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Hi Folks,

I'm trying to get Ultimate URLs to work on Moku's Book Product Type. I followed the directions from http://www.zen-cart.com/forum/showthread.php?t=21801 adding lines to the .htaccess and the seo.url.php file to include music and a duplicate in which I changed 'music' to 'book' and 'pmi' to 'pbi'. But, no dice. The URLs work for my info pages and category pages but not for the product pages. Any ideas? Can I post more info which would help someone in helping me out with this? Thanks.

smackjams
https://www.artielbooks.com

7 Oct 2006, 11:13 PM
#238
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Originally Posted by mafiasam
That did not work for me...
I have not been able to get it to work at all. ANY HELP

Originally Posted by MorganKhalil
same here, what am i doing wrong?

kelvyn:

Got a link?

here is the thread this refers to...

http://www.zen-cart.com/forum/showpost.php?p=266814&postcount=203

see this link for the ez page that is not being converted
http://www.oldwestgames.com/page.html?chapter=0&id=1

9 Oct 2006, 6:12 AM
#239
issy avatar

issy

New Zenner

Join Date:
Jan 2006
Posts:
59
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

smackjams:

Hi Folks,

I'm trying to get Ultimate URLs to work on Moku's Book Product Type. I followed the directions from http://www.zen-cart.com/forum/showthread.php?t=21801 adding lines to the .htaccess and the seo.url.php file to include music and a duplicate in which I changed 'music' to 'book' and 'pmi' to 'pbi'. But, no dice. The URLs work for my info pages and category pages but not for the product pages. Any ideas? Can I post more info which would help someone in helping me out with this? Thanks.

smackjams
https://www.artielbooks.com

Did you ever get this fixed?
I'm having the same problem

Let me know if you do, thanks.

Issy