Forums / All Other Contributions/Addons / Chemo's Ultimate URL's

Chemo's Ultimate URL's

Views: 494,245

Results 1,381 to 1,400 of 1,407
25 Feb 2009, 2:38 PM
#1381
funkey avatar

funkey

New Zenner

Join Date:
Jul 2005
Posts:
85
Plugin Contributions:
0

Chemo's Ultimate URL's

I used the following SQL Code to remove the information for SEO 3.0.0-beta1 from a number of sites that are in the process of transitioning to SSU or Magic SEO.

(This may or may not work for you, it works for me -- but you might want to backup your database before trying this :))

Go to Tools ->Install SQL Patches and enter the following code:

(note: that's four seperate lines with the ;'s ending each line.)

--[begin cut here]--

SET @configuration_group_id=0;
SELECT (@configuration_group_id:=configuration_group_id) FROM configuration_group WHERE configuration_group_title = 'Seo Urls 3.0.0-beta1' LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;

--[end cut here]--

If it works, you should see "4 Statements Processed" and you will no longer see the unmaintained SEO module in your configuration menu.

1 May 2009, 1:14 PM
#1382
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Hello all, right i've noticed that our ultimate seo its V2.100 and was planning on upgrading to V2.101 can anyone tell me if the problem is fixed in this where some URLs do not rewrite with SEF urls?

and if so is it just a question of copying over the seo.url.php file?

having got them up side by side it would appear that our current one says osCid instead of Zenid.

The weird thing is though that on the majority of these URLS it does create the SEF but on others it doesnt.

any confirmation or pointers greatly recieved.

regards

Andy.

oh dear gurrrddddd.

2 Aug 2009, 4:21 AM
#1383
edwardtilbury avatar

edwardtilbury

Zen Follower

Join Date:
Sep 2007
Posts:
169
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

dreamscape:

Here is how you can get 404 headers to be sent. This is from the archives, so I'll post it here.

Well first off the issue is really due to the fact that Zen Cart does not send 404 headers. If you turn SEO off or on a shop with it turned off, and you can go to index.php?main_page=gobbledeygook, you will get an HTTP 200 OK header (and most likely the index page). It's just that the issue is a bit more noticeable with SEO installed, but it exists in a plain vanilla Zen Cart install as well.

You can send 404 headers on invalid pages by doing this (for 1.3):

  1. Open file includes/init_includes/init_sanitize.php
  1. Find on line 105 or thereabout:

if (!is_dir(DIR_WS_MODULES . 'pages/' . $_GET['main_page'])) {

>
4. Add after:
> ```php
header('HTTP/1.1 404 Not Found');

I don't want google to penalize me for duplicate page names.. I read about this fix, do you think it's still necessary in the latest version?

That will give a 404 header to user agents (including search bots) on invalid pages.

Is this still necessary on 1.3.8a?

So on 1.3.8a it should look like

  if (!is_dir(DIR_WS_MODULES .  'pages/' . $_GET['main_page'])) {
header('HTTP/1.1 404 Not Found');
    if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
      $_GET['main_page'] = 'index';
    } elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
      header('HTTP/1.1 404 Not Found');
      $_GET['main_page'] = 'page_not_found';
    }

instead of

  if (!is_dir(DIR_WS_MODULES .  'pages/' . $_GET['main_page'])) {
    if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
      $_GET['main_page'] = 'index';
    } elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
      header('HTTP/1.1 404 Not Found');
      $_GET['main_page'] = 'page_not_found';
    }

If I do this and type in gobbledygook

THANKS!

AIM edwardtilbury
GoogleTalk edwardtilbury

12 Sep 2009, 4:10 PM
#1384
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

I just installed the latest version and my EZPages do not rewrite. Is this mod not able to do those? Thanks!

18 Sep 2009, 1:00 PM
#1385
shqipo avatar

shqipo

New Zenner

Join Date:
Apr 2006
Posts:
94
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

macson:

i have resolve the problem.
just modify the table sort for left join.

SELECT c.categories_id as id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName
FROM ".TABLE_CATEGORIES." c,
".TABLE_CATEGORIES_DESCRIPTION." cd
LEFT JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd2
ON c.parent_id=cd2.categories_id AND cd2.language_id='".(int)$this->languages_id."'
WHERE c.categories_id=cd.categories_id
AND cd.language_id='".(int)$this->languages_id."'";

change to --->
"SELECT c.categories_id as id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName
FROM
".TABLE_CATEGORIES_DESCRIPTION." cd,
".TABLE_CATEGORIES." c
LEFT JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd2
ON c.parent_id=cd2.categories_id AND cd2.language_id='".(int)$this->languages_id."'
WHERE c.categories_id=cd.categories_id
AND cd.language_id='".(int)$this->languages_id."'";

I am having the same problem. I have two sites which have been working fine for 2 years. A week or so ago the host went down for a few days. When they finally came up, store was OK. Two days ago, all of a sudden the store disappears and all I get is:

1054 Unknown column 'c.parent_id' in 'on clause'
in:
[SELECT c.categories_id as id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName FROM zen_categories c, zen_categories_description cd LEFT JOIN zen_categories_description cd2 ON c.parent_id=cd2.categories_id AND cd2.language_id='1' WHERE c.categories_id=cd.categories_id AND cd.language_id='1']

I tried to find the code (as advised above) in includes/classes/seo.url.php but I can't find it. Any help would be greatly appreciated! I logged into my admin panel and I saw that SEO URL was turned off (false). I did reset it (cause another post suggested that), still the same. Tried to turn it on and off and nothing.

19 Sep 2009, 4:02 PM
#1387
mtkatgirl avatar

mtkatgirl

New Zenner

Join Date:
Jun 2007
Location:
Helena, MT
Posts:
55
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

I have a site that is using 1.3.7 although I am working on a test site upgrade to 1.3.8a. I removed all the files and modifications for SEO URLS but it is still showing up in my configuration list. I tried the SQL patch shown above and nothing happened. When I then copied my database to the test 1.3.8 site, it showed up there as well. I cannot get it to work as it hinders other pages as well so I want it gone! How can I get rid of it in both sites? I'll try using another SEO program, but I want SEO URLs gone. Or will I just have to live with it sitting turned off in admin Configuration? :frusty:

Kathy

16 Oct 2009, 6:49 AM
#1388
maxus avatar

maxus

Zen Follower

Join Date:
Feb 2005
Location:
Prague
Posts:
130
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

I have this mode long time
After database apgrade to MySQL 5.0.77 have som eproblems

I add new categories. All ok. But one category looked like empty

This empty category hase another one inside.. But dont show me it... Just looked like no category inside.
If I turn off SEO mod - I see it.

Something wrong and I dont know where can I search.

I add meibe 20 new categories yesterday and only one looked empty.... it is strange... All other worked normaly....

maxus

7 Nov 2009, 1:42 AM
#1389
joepixel avatar

joepixel

New Zenner

Join Date:
May 2008
Location:
orlando, florida
Posts:
28
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Hey,

I moved a domain to Rackspace and I have the SEO URLs mod installed. It's been installed and running fine for over a year on a GoDaddy server. But, it's not working on the new Rackspace server. Since I now have full control over the new server, I'm thinking that there is a setting that I've missed somewhere. The URLs are rewriting but when clicked, get a 404 error. I'm thinking it might have something to do with the .htaccess file because my 404 redirect is also not working. I'm certain the file is written correctly because it's been working on another server.

So, is there an Apache setting somewhere that needs to be enabled? Has anyone else had this issue? Any tips are greatly appreciated!

Thank you!

19 Apr 2010, 1:40 AM
#1390
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

I have 404 error coming up as well *** URL REMOVED ***/beauty-c-31.html

.htaccess is written to specifications

can anyone help?

6 May 2010, 12:42 AM
#1391
cellz4less avatar

cellz4less

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Zen Cart 1.39b

Just installed this and when I enable the module I only get:

Not Found

The requested URL /lg-xenon-gr500-3g-touchscreen-qwerty-att-unlocked-phone-blue-p-1468.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I'm not sure what the issue is or what I'm doing wrong - however need any help you can offer.

3 Nov 2010, 3:51 PM
#1392
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Hi - did you get a fix for this? I'm running lighttpd and when I enable the seo module it redirects fine to the friendly url but it also says 404 -not found. It's driving me crazy. I've put an adapted htaccess file in the root (for lighttpd) but it doesn't seem to do anything. Maybe I've not enabled the rewrite module in lighttpd but I don't know how to check. I've created a phpinfo file but I don't know what I'm looking for.

Yuck :-(

Richard

4 Nov 2010, 1:54 AM
#1393
kenjin avatar

kenjin

New Zenner

Join Date:
Apr 2006
Posts:
1
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Hi
I was using theUltimate SEO URL and seemed to be having the same problem,

All catalog pages went 404.

My Solution was 2 things:

In the .htaccess file I changed this line to"RewriteBase /" because my store was installed in main directory not subdirectory

also make sure you add the . (dot) in front of htaccess file name it should be .htaccess

Now it works great

Hope this helps someone

21 Nov 2010, 2:22 PM
#1394
immanuelvictor avatar

immanuelvictor

New Zenner

Join Date:
Nov 2010
Posts:
2
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

Hi,

My website is build in zencart version 1.3.8a. while using xenu test tool all the html links are reported has "404 page not found" error. But all the page are working fine in the browsers. I request you to help me in this issue.

Here is my htaccess code:

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

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

#RewriteCond %{HTTP_HOST} !^www.us-immigration.com [NC]
#RewriteCond %{HTTP_HOST} !^$
#RewriteRule ^(.*) http://www.us-immigration.com/$1 [L,R]

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

From Ultimate SEO URLs

RewriteRule ^(.)-p-(.).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-c-(.).html$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-n-(.).html$ index.php?main_page=news_article&article_id=$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 ^catalog/(.)$ index.php?main_page=product_info&products_id=118&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pji-(.*).html$ index.php?main_page=document_product_info&products_id=$2&%{QUERY_STRING} [L]

For Open Operations Info Manager

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

For dreamscape's News & Articles Manager

RewriteRule ^rss.xml$ index.php?main_page=news_rss&%{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]

Please help me.

-ImmanuelVictor.

31 Jan 2011, 10:29 PM
#1395
ljager avatar

ljager

New Zenner

Join Date:
Jan 2011
Posts:
3
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

I also have this issue - installed the latest version of the Ultimate SEO URL's module (2.109) on top of the latest release of Zen Cart (1.3.9h) and all links produce a 404 error.

Problem is, there's been a lot of talk about editing the .htaccess file in the root folder of the cart installation (ie. in my case - with it being under a subdomain (http://designing.theweare.net) - the "root" would be the folder named designing), except in my installation there is no .htaccess in the root directory. There are a number of others inside subfolders - there's even one called htaccess_for_page_not_found_redirects.htaccess which I find particularly amusing :laugh: - do I move one of the existing files to the cart's root directory? Do I simply edit one of the existing ones and leave it where it is (if so, which one/s)? Or do I just create a blank .htaccess file and add the rewrite rules to it?

The existing .htaccess files are in the current locations:

/designing/editors/.htaccess

/designing/pub/.htaccess

/designing/images/.htaccess

/designing/images/uploads/.htaccess

/designing/zc_admin/.htaccess

/designing/zc_admin/includes/.htaccess

/designing/download/.htaccess

/designing/media/.htaccess

/designing/extras/.htaccess

/designing/extras/htaccess_for_page_not_found_redirects.htaccess

/designing/email/.htaccess

/designing/docs/.htaccess

/designing/cache/.htaccess

/designing/includes/.htaccess

/designing/includes/classes/support/.htaccess

/designing/includes/modules/payment/linkpoint_api/.htaccess

/designing/includes/modules/payment/paypal/logs/.htaccess

Any help would be appreciated... :smile:

Thanks in advance,

LJ

P.S.
If the key to this module working is in the .htaccess file, how would it work for sites under a subdomain, as opposed to a subdirectory? For example, the site in question here is http://designing.theweare.net - not http://www.theweare.net/designing - would the previously mentioned "/designing/" hack still work for this (I'm assuming it refers to the folder on the server that all files are contained in, so if that's the case I think it should, but can't be sure - plus I've just tested the subdirectory URL structure and it seems to work just like the subdomain one)?

5 Mar 2011, 7:12 PM
#1396
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

immanuelvictor:

#RewriteCond %{HTTP_HOST} !^www.us-immigration.com [NC]
#RewriteCond %{HTTP_HOST} !^$
#RewriteRule ^(.*) http://www.us-immigration.com/$1 [L,R]

RewriteCond %{HTTP_HOST} ^us-immigration.com$ [NC]
RewriteRule ^(.*)$ http://www.us-immigration.com/$1 [R=301]
The first ruleset produces a 302 redirect and does not redirect www requests with an appended port number.

The second ruleset never gets to run. Even so, the L flag is missing from that rule.

Try one rule:

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

From Ultimate SEO URLs

RewriteRule ^(.)-p-(.).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-c-(.).html$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-n-(.).html$ index.php?main_page=news_article&article_id=$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 ^catalog/(.)$ index.php?main_page=product_info&products_id=118&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pji-(.*).html$ index.php?main_page=document_product_info&products_id=$2&%{QUERY_STRING} [L]

For Open Operations Info Manager

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

The multiple (.*) patterns cause this code to run hundreds of times slower than it should. Every URL request hitting your server results in mod_rewrite performing thousands or tens of thousands of "back off and retry" "trial match" attempts.

The code will run much more efficiently if the patterns can be parsed left-to-right in one attempt. Additionally, the [QSA] flag does the same job as &%{QUERY_STRING} but in less CPU cycles.

Try:

RewriteRule ^(([^-]+-)+)p-([^.]+)\.html$ index\.php?main_page=product_info&products_id=$3 [QSA,L]
RewriteRule ^(([^-]+-)+)c-([^.]+)\.html$ index\.php?main_page=index&cPath=$3 [QSA,L]
RewriteRule ^(([^-]+-)+)n-([^.]+)\.html$ index\.php?main_page=news_article&article_id=$3 [QSA,L]
RewriteRule ^(([^-]+-)+)m-([0-9]+)\.html$ index\.php?main_page=index&manufacturers_id=$3 [QSA,L]
RewriteRule ^(([^-]+-)+)pi-([0-9]+)\.html$ index\.php?main_page=popup_image&pID=$3 [QSA,L]
RewriteRule ^(([^-]+-)+)pr-([0-9]+)\.html$ index\.php?main_page=product_reviews&products_id=$3 [QSA,L]
RewriteRule ^(([^-]+-)+)pri-([0-9]+)\.html$ index\.php?main_page=product_reviews_info&products_id=$3 [QSA,L]
#RewriteRule ^catalog/(.*)$ index\.php?main_page=product_info&products_id=118 [QSA,L]
RewriteRule ^(([^-]+-)+)pji-([^.]+)\.html$ index\.php?main_page=document_product_info&products_id=$3 [QSA,L]

# For Open Operations Info Manager
RewriteRule ^(([^-]+-)+)i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$3 [QSA,L]

There is still a huge danger in this code. The $1 backreference should be passed to the index.php script as another paramter and the value checked. If the $1 value is not valid for the current value of $3, the script should be returning either a 301 redirect to the correct URL or a 404 error. Failure to do this opens the site to infinite Duplicate Content issues because any and all values of $1 will result in your site returning a page of content and the "200 OK" status code.

Online since 1995.

18 Mar 2011, 1:13 AM
#1397
pizza392 avatar

pizza392

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

hello, i go to url https://www.site.com/product-name-aaa-11.html, i get product info page of product aaa,
if i change that id 11 to 12, i go to url https://www.site.com/product-name-aaa-12.html , i get product info page of product bbb
but why the url couldn't automatically directed to https://www.site.com/product-name-bbb-12.html ?
is there anything what i missed? or thats just ultimate seo couldn't do?

18 Mar 2011, 1:15 AM
#1398
pizza392 avatar

pizza392

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

what do i remove .html ? i havent found the answer in the forum

18 Mar 2011, 1:18 AM
#1399
pizza392 avatar

pizza392

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

another question, ultimate seo urls doesn't support milti languages site ?

i switch the site to another language, then i click the procuct, the product url is same as my default language

18 Mar 2011, 1:31 AM
#1400
pizza392 avatar

pizza392

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Re: Chemo's Ultimate URL's

in admin-configuration-SEO URLs
if i set the option Reset SEO URLs Cache to "reset", after saving it, it goes back to "false", even i set it to "reset" from phpmyadmin, when i refresh my admin page, it still goes back to "false". is it normal ?