Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error too many redirects on product info


ggsp

Recommended Posts

ok did a trace and it's as i thought you have a redirect at your server root that you have not removed. All products go in 301 loop. Your host may have it set at server.

The URL requested has been permanently reassigned to another URL, and the page at that URL will be requested. But if you havent done this that page will never be found!

image.png.34ab1c64f6f545a138d6d484ca6ee122.png

 

Link to comment
Share on other sites

3 hours ago, bonbec said:

When I try product_info.php?products_id=2280&osCsid=gogut483pvu9f7loi02vl9uk36

I have this thing after the loop :  product_info.php?products_id=2280&osCsid=gogut483pvu9f7loi02vl9uk36

I think the error is with amp; because it don't exist. But &amps; exist.

with OsC 2.2 since 2006 ...

Link to comment
Share on other sites

8 hours ago, JcMagpie said:

I can get to all your files, it is only products that do not work.  When you migrated did you copy over all the files or did you do new install and just copy db?

I copied all files and database

Link to comment
Share on other sites

8 hours ago, JcMagpie said:

Also in your admin do you have any SEO addon instaled! it looks as if you may have links that have not been updated. This can happen if you copy whole website from one server to another and not runf the seo again to update stored links.

Iuse SEO URL, in admin panel this setting is in configuration SEO URL...

Link to comment
Share on other sites

8 hours ago, JcMagpie said:

ok did a trace and it's as i thought you have a redirect at your server root that you have not removed. All products go in 301 loop. Your host may have it set at server.

The URL requested has been permanently reassigned to another URL, and the page at that URL will be requested. But if you havent done this that page will never be found!

image.png.34ab1c64f6f545a138d6d484ca6ee122.png

 

Hello, i have realised that it is the real (the other comes from old bad backup) .HTACCESS: but with this .htaccess i continue getting the same error:

 

Options +SymLinksIfOwnerMatch

RewriteEngine On 

RewriteBase /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}


<Files 403.shtml>
order allow,deny
allow from all
</Files>


deny from 74.6.68.2/31
deny from 74.6.68.4/30
deny from 74.6.68.8/29
deny from 74.6.68.16/28
deny from 74.6.68.32/27
deny from 74.6.68.64/26
deny from 74.6.68.128/25
deny from 74.6.71.1/32
deny from 74.6.71.2/31
deny from 74.6.71.4/30
deny from 74.6.71.8/29
deny from 74.6.71.16/28
deny from 74.6.71.32/27
deny from 74.6.71.64/26
deny from 74.6.71.128/25
deny from 74.6.24.1/32
deny from 74.6.24.2/31
deny from 74.6.24.4/30
deny from 74.6.24.8/29
deny from 74.6.24.16/28
deny from 74.6.24.32/27
deny from 74.6.24.64/26
deny from 74.6.24.128/25
deny from 74.6.74.1/32
deny from 74.6.74.2/31
deny from 74.6.74.4/30
deny from 74.6.74.8/29
deny from 74.6.74.16/28
deny from 74.6.74.32/27
deny from 74.6.74.64/26
deny from 74.6.74.128/25
deny from 74.6.66.1/32
deny from 74.6.66.2/31
deny from 74.6.66.4/30
deny from 74.6.66.8/29
deny from 74.6.66.16/28
deny from 74.6.66.32/27
deny from 74.6.66.64/26
deny from 74.6.66.128/25
deny from 74.6.0.0/16
deny from 66.249.66.36
deny from 64.1.215.165
deny from 66.249.65.193
deny from 66.249.65.78
deny from 66.249.65.99
deny from 77.91.224.18
deny from 201.160.212.23
deny from 66.249.71.73
deny from 210.19.71.60
deny from 133.9.84.91
deny from 113.121.74.251
deny from 188.165.238.177
deny from 213.186.122.2

Link to comment
Share on other sites

As its only product paths that are beeing blocked remove this, and see what happens

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

As I said before, with redirects its best to get rid of all of these until you have the store working. Then introduce them one at a time checking that each works.

 

 

Link to comment
Share on other sites

On 9/1/2018 at 9:22 AM, JcMagpie said:

As its only product paths that are beeing blocked remove this, and see what happens

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

As I said before, with redirects its best to get rid of all of these until you have the store working. Then introduce them one at a time checking that each works.

 

Ok, i have deleted all redirects form my .htaccess file, but the problem persists...

Link to comment
Share on other sites

Look in your SEO scripts, I'm sure there's a character replacement error, it's not normal that when there's a redirect loop, that adds amp; at each passage. Logically it must be &amp; and not amp; without the &

with OsC 2.2 since 2006 ...

Link to comment
Share on other sites

1054 - Unknown column 'p.products_id' in 'on clause'

select count(p.products_id) as total from (products_description pd, products p ) left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '3' and p2c.categories_id = '123'

 

This due to you using old osC and moving to new host which is using new version of MySQL .  This is an old problem so check this link for fix.

 

 

Link to comment
Share on other sites

&amp; is incorrect in a URL Query String anyway. It should just be a & character to separate terms (var=value). Did the OP use a word processor or HTML page builder to edit files? I've seen that kind of thing happen when the wrong kind of editor is used.

Link to comment
Share on other sites

2 hours ago, JcMagpie said:

1054 - Unknown column 'p.products_id' in 'on clause'

select count(p.products_id) as total from (products_description pd, products p ) left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '3' and p2c.categories_id = '123'

 

This due to you using old osC and moving to new host which is using new version of MySQL .  This is an old problem so check this link for fix.

 

Sorry i have paste this text by error...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...