Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] SEO-G


Guest

Recommended Posts

Hi Again,

 

Followed that through, adding $request_type = ($_SERVER['SERVER_PORT'] == '443') ? 'SSL' : 'NONSSL'; to root and application_top but still the callback failed. ( my _SERVER["SERVER_PORT"] value is 443 so I'm assuming this line is correct).

 

Reconfigured the WorldPay callback url to http: as opposed to https: and the callback works.

 

Regards,

Graham.

that shows something to do with the secure connection. After you did the mod in root.php you should clear the SEO-G recorded urls from the SEO-G reports table. Because I don't know what urls were recorded, if the secure connection identification process wasn't working.

Link to comment
Share on other sites

  • Replies 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

that shows something to do with the secure connection. After you did the mod in root.php you should clear the SEO-G recorded urls from the SEO-G reports table. Because I don't know what urls were recorded, if the secure connection identification process wasn't working.

 

Bingo! That appears to have solved it. MANY THANKS for your time and help, it is much appreciated.

 

Regards,

 

 

Graham.

Link to comment
Share on other sites

Hi All,

 

I have osCommerce installation in bluehost.com with SEO-G module.

All Works fine except I have the osCsid in links only on the first page. After I click any link the osCsid disappeared from the link. Can I remove the osCsid parameter from links on the first page as well?

 

Thanks,

Hanan

Link to comment
Share on other sites

Hi, first off, thanks for this great module. I've just finished installing it and it works fine but just curious if the link is supposed to be like this:

http://sitename.com/dev/product_info.php?c...ack+Ceramic+Mug

 

I thought the SEO-G was suppose to generate URLs like http://sitename.com/dev/categoryname/productname.html

 

The categories and other pages works fine: http://sitename.com/dev/mugs-and-tumblers.html or aboutus.html but when I click on the product, it gives me the link above. How do I change this? I've looked through the ReadMe file and the admin configurations but don't know where to edit this and if it's possible.

 

In the G-Controller, I've already added all the products and categories. In the G-Types, I've also change the sort order to 3,2,1 like what was recommended in the readme.html though I don't see any difference.

 

Any help would really be great!

Link to comment
Share on other sites

Hi, first off, thanks for this great module. I've just finished installing it and it works fine but just curious if the link is supposed to be like this:

http://sitename.com/dev/product_info.php?c...ack+Ceramic+Mug

 

I thought the SEO-G was suppose to generate URLs like http://sitename.com/dev/categoryname/productname.html

 

The categories and other pages works fine: http://sitename.com/dev/mugs-and-tumblers.html or aboutus.html but when I click on the product, it gives me the link above. How do I change this? I've looked through the ReadMe file and the admin configurations but don't know where to edit this and if it's possible.

 

In the G-Controller, I've already added all the products and categories. In the G-Types, I've also change the sort order to 3,2,1 like what was recommended in the readme.html though I don't see any difference.

 

Any help would really be great!

you must have some other seo module that generates the products_name parameter. That's not part of the SEO-G. I would recommend to remove it.

Link to comment
Share on other sites

Hi All,

 

I have osCommerce installation in bluehost.com with SEO-G module.

All Works fine except I have the osCsid in links only on the first page. After I click any link the osCsid disappeared from the link. Can I remove the osCsid parameter from links on the first page as well?

 

Thanks,

Hanan

Sessions are part of the stock osc and not relevant with SEO-G.

Link to comment
Share on other sites

ok your .htaccess does not look right. You have a relative path (I cannot tell exactly but is at least /osc/ while your .htaccess shows to be at the root of the domain. Read the install instractions how to setup your configure.php and .htaccess files.

 

I figured out what is causing the problem. Everything was working and then I changed to php 5 and that is what is causing the problems. I was able to get the product to show up by changing line 136 in the root.php file from:

 

$tmp_array = array_merge($HTTP_GET_VARS,$tmp_array);

to

$tmp_array = array_merge($_GET,$tmp_array);

 

Now when I click add to cart it comes back with the page: Product not found!

Link to comment
Share on other sites

I figured out what is causing the problem. Everything was working and then I changed to php 5 and that is what is causing the problems. I was able to get the product to show up by changing line 136 in the root.php file from:

 

$tmp_array = array_merge($HTTP_GET_VARS,$tmp_array);

to

$tmp_array = array_merge($_GET,$tmp_array);

 

Now when I click add to cart it comes back with the page: Product not found!

I see, but that's not right. Because the $_GET is set later (see line below). So you should do:

 

if(is_array($HTTP_GET_VARS) ) {
$tmp_array = array_merge($HTTP_GET_VARS,$tmp_array);
}

I will include this with the next version.

 

Your problem... if I recall correctly however was that the .htaccess rewrite base was not consistent with the location of the osc (and configure.php)

So you need to fix that.

Link to comment
Share on other sites

I see, but that's not right. Because the $_GET is set later (see line below). So you should do:

 

if(is_array($HTTP_GET_VARS) ) {
$tmp_array = array_merge($HTTP_GET_VARS,$tmp_array);
}

I will include this with the next version.

 

Your problem... if I recall correctly however was that the .htaccess rewrite base was not consistent with the location of the osc (and configure.php)

So you need to fix that.

 

The rewrite base is consistent with the location of the store. This store I am working on is a subdomain, osc.domain.com

 

I did not have this problem until I switched over to php5 so there is something some where that is not working with php5 I just can't figure out what part it is.

Link to comment
Share on other sites

The rewrite base is consistent with the location of the store. This store I am working on is a subdomain, osc.domain.com

according to what you posted it isn't consistent

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/.../.../osc/root.php:136) in /home/.../.../osc/includes/functions/sessions.php on line 98

 

and from your .htaccess

#-MS- SEO-G Added

Options +FollowSymLinks

RewriteEngine On

# Next line must be changed to match your osCommerce folder - the relative path

RewriteBase /

RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING}

#-MS- SEO-G Added EOM

 

So it's inconsistent or you do not post the right files. The rewrite base must match the relative path. And so your configure.php. See the configure_example.php from the SEO-G archive which also emulates a subdomain.

Link to comment
Share on other sites

according to what you posted it isn't consistent

and from your .htaccess

So it's inconsistent or you do not post the right files. The rewrite base must match the relative path. And so your configure.php. See the configure_example.php from the SEO-G archive which also emulates a subdomain.

 

I don't have that error anymore that part now works with the change to the root.php file.

Link to comment
Share on other sites

I don't have that error anymore that part now works with the change to the root.php file.

right but you said you have another error

Now when I click add to cart it comes back with the page: Product not found!

Or is that ok too? In any case you need to follow the instructions or you going to stay with the problems.

 

and how your store works without the use of the $HTTP_GET_VARS is beyond me as the compatibility get array is used throughout osc. You need your server to support the $HTTP_GET_VARS and $HTTP_POST_VARS arrays.

Edited by enigma1
Link to comment
Share on other sites

you must have some other seo module that generates the products_name parameter. That's not part of the SEO-G. I would recommend to remove it.

 

Hi, I don't think we have any other SEO module. Can you tell me where I can check that? The SEO-G generates links like http://www.sitename.com/dev/categoryname/productname.html right??

Link to comment
Share on other sites

Hi, I don't think we have any other SEO module. Can you tell me where I can check that? The SEO-G generates links like http://www.sitename.com/dev/categoryname/productname.html right??

you posted:

http://sitename.com/dev/product_info.php?cPath=76&products_id=204&products_name=Black+Ceramic+Mug

so that's not SEO-G and not stock osc. And I've no idea where you got it from. You must have something else with your store that generates these things. You need to find what it is and remove it.

Link to comment
Share on other sites

you posted:

http://sitename.com/dev/product_info.php?cPath=76&products_id=204&products_name=Black+Ceramic+Mug

so that's not SEO-G and not stock osc. And I've no idea where you got it from. You must have something else with your store that generates these things. You need to find what it is and remove it.

 

I found where the bug was... turns out I've edited the new_products.php and product_listing.php before and added the product name to the URL. After I deleted it, the SEO-G worked :)

 

I also changed the separator to "/" and got http://sitename.com/dev/categoryname/product.html

 

The only problem now is when I go to the product.html, all the images are gone because it links to http://sitename.com/dev/categoryname/images/image.jpg instead of http://sitename.com/dev/images/image.jpg

 

Any solution to this? Thanks!

Link to comment
Share on other sites

I found where the bug was... turns out I've edited the new_products.php and product_listing.php before and added the product name to the URL. After I deleted it, the SEO-G worked :)

 

I also changed the separator to "/" and got http://sitename.com/dev/categoryname/product.html

 

The only problem now is when I go to the product.html, all the images are gone because it links to http://sitename.com/dev/categoryname/images/image.jpg instead of http://sitename.com/dev/images/image.jpg

 

Any solution to this? Thanks!

can you post a link to a product that has the problem? (you may also need to post your .htaccess and configure.php files if you haven't followed the instructions so the paths in the configure.php and .htaccess are incorrect it may cause this).

Link to comment
Share on other sites

can you post a link to a product that has the problem? (you may also need to post your .htaccess and configure.php files if you haven't followed the instructions so the paths in the configure.php and .htaccess are incorrect it may cause this).

 

Here's a link to the products: http://mto123.com/dev/corporate-promotiona...s-and-cups.html

 

I didn't change anything in configure.php and this is what I have in my .htaccess file:

#-MS- SEO-G Added

Options +FollowSymLinks

RewriteEngine On

# Next line must be changed to match your osCommerce folder - the relative path

RewriteBase /dev/

RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING}

#-MS- SEO-G Added EOM

Link to comment
Share on other sites

Here's a link to the products: http://mto123.com/dev/corporate-promotiona...s-and-cups.html

 

I didn't change anything in configure.php and this is what I have in my .htaccess file:

#-MS- SEO-G Added

Options +FollowSymLinks

RewriteEngine On

# Next line must be changed to match your osCommerce folder - the relative path

RewriteBase /dev/

RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING}

#-MS- SEO-G Added EOM

 

why have you commented out the base href?

<!-- <base href="http://mto123.com/dev/"> -->

can you put that back in? the code in the php files should been like

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

Link to comment
Share on other sites

why have you commented out the base href?

<!-- <base href="http://mto123.com/dev/"> -->

can you put that back in? the code in the php files should been like

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

 

Oh, I see! I edited the <base> in index.php and it now works. Thanks a lot for the help and this great module!! :)

Link to comment
Share on other sites

Hi,

 

I have installed this contribution, and all is working fine except when I try to add a new product... it appears in the product list on the category page but when clicked on it returns "product not found".

 

I have pasted my .htaccess and configure.php below, if anyone can see any glaring errors I would be most grateful!

 

.htaccess:

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

#-MS- SEO-G Added
Options +FollowSymLinks
RewriteEngine On
# Next line must be changed to match your osCommerce folder - the relative path
RewriteBase /catalog/
RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING}
#-MS- SEO-G Added EOM

<IfModule mod_setenvif.c>
 <IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
		 nokeepalive ssl-unclean-shutdown \
		 downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# Fix certain PHP values

<IfModule mod_php5.c>
php_value session.use_trans_sid 0
 php_value register_globals 1
</IfModule>

 

configure.php

/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/equineca/public_html/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
 //added for thumbnailer
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 define('DIR_WS_IMAGES', 'images/');
		//added for thumbnailer

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'myusername');
 define('DB_SERVER_PASSWORD', 'mypassword');
 define('DB_DATABASE', 'mydatabase');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 // STS: ADD: Define Simple Template System files
define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');
define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');
define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');
define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');
define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');
define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');
define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');
define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');
// STS: EOADD
?>

 

Thank you :blush:

Link to comment
Share on other sites

Hi,

 

I have installed this contribution, and all is working fine except when I try to add a new product... it appears in the product list on the category page but when clicked on it returns "product not found".

 

I have pasted my .htaccess and configure.php below, if anyone can see any glaring errors I would be most grateful!

Can you check the SEO-G reports page? Is the new products link converted there? And is this live? if so post the link to the product that has the problem.

 

And in your .htaccess move the SEO-G section at the end of the file.

Link to comment
Share on other sites

Can you check the SEO-G reports page? Is the new products link converted there? And is this live? if so post the link to the product that has the problem.

 

And in your .htaccess move the SEO-G section at the end of the file.

 

Hi, thanks for your reply. I have moved the SEO-G section to the end of the .htaccess file.

 

I have checked the SEO-G reports page - the product link is converted there, but neither the SEO link nor the original link work... both return 'product not found' :'(

 

The store is live, the product with the problem is the one in this category: http://www.equinecaninefeline.com/catalog/..._dog-leads.html

 

Any suggestions appreciated!

Link to comment
Share on other sites

Hi, thanks for your reply. I have moved the SEO-G section to the end of the .htaccess file.

 

I have checked the SEO-G reports page - the product link is converted there, but neither the SEO link nor the original link work... both return 'product not found' :'(

 

The store is live, the product with the problem is the one in this category: http://www.equinecaninefeline.com/catalog/..._dog-leads.html

 

Any suggestions appreciated!

Also, wierdly - if I search for the words - red dog - it does not appear in the search results... but it is there as I can access and view it in the admin section. The quantity is more than 0 and it is set to in stock... :blink:

Any ideas?

Link to comment
Share on other sites

Also, wierdly - if I search for the words - red dog - it does not appear in the search results... but it is there as I can access and view it in the admin section. The quantity is more than 0 and it is set to in stock... :blink:

Any ideas?

Ah - solved it... was missing part of one of my files as when I reuploaded my backups it all suddenly worked again!

Thank you for your help, this is a fantastic contribution! :rolleyes:

Link to comment
Share on other sites

Ah - solved it... was missing part of one of my files as when I reuploaded my backups it all suddenly worked again!

Thank you for your help, this is a fantastic contribution! :rolleyes:

yes ok, if the original osc link doesn't work it's outside the SEO-G.

 

Also note, for old links when a product (in general any link) is no longer available, use the G-Redirects to place the links there with the "source URL" as the old link and "target URL" a new link of your choice and set it to 301. It should redirect spiders to the new links so you won't lose the traffic. The G-Redirects works on a per link basis.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...