Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 11-26-2005, 03:31 AM
Junior Member
 
Join Date: 11-26-05
Posts: 3
iTrader: 0 / 0%
Question Htaccess is sending bots to bogus pages?

i use htaccess to rewrite from /product_info/product_id=00 to:
Product+Category/Product_Brand.html

the problem:
msn, yahoo and google are indexing pages THAT DO NOT EXIST and never have.

they're indexing VALID category names, but they are also linking them to other categories. for instance:

Old+Antiques/1920s.html (valid)
the spiders find this no problem.

but for the past month, they have been finding url's like this:
Old+Antiques/1920s__1930s.html
what they are doing is merging one category with another, and this is producing a 200/OK response.

i can't figure out why.
could it be in my htaccess or my code?

if any part of the codes used needs to be posted.. please let me know.

this is from an oscommerce-based website, but i have already hit the osc forums and it has been determined to not be an oscommerce issue.

the htaccess and rewrite script i use is not stock oscommerce.
i have sent a bot to pull every page linked on my site, none of these url's are showing up anywhere.

for reference, here is my htaccess rule:
RewriteEngine on
RewriteBase /
RewriteRule ^([^/]*)\.html$ $1.php?%{QUERY_STRING} [NC]
RewriteRule ^/?(category)/([^/]*)\.html$ index.php?cPath=$2&%{QUERY_STRING} [NC]
 
Reply With Quote
  #2 (permalink)  
Old 11-26-2005, 06:35 AM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
Very strange.. Not sure why its combing the code.. hmm
 
Reply With Quote
  #3 (permalink)  
Old 11-26-2005, 06:42 AM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
Maybe you could use this type of rewrite
http://www.sitepoint.com/article/guide-url-rewriting/4
 
Reply With Quote
  #4 (permalink)  
Old 11-26-2005, 09:35 AM
Junior Member
 
Join Date: 11-26-05
Posts: 3
iTrader: 0 / 0%
i'm very new to htaccess, so i may be missing the obvious.. but isn't this similar to the rewrite rule i am currently using?

Code:
RewriteRule ^/products/[0-9]+$ products.php?id=$1&todo=
 
Reply With Quote
  #5 (permalink)  
Old 11-27-2005, 08:28 PM
Junior Member
 
Join Date: 11-26-05
Posts: 3
iTrader: 0 / 0%
does anyone have a suggestion?
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
preventing bogus data from being submitted gnznroses Coding Forum 19 01-23-2007 07:55 PM
BOGUS EMAIL MARKETING clasione Marketing Forum 5 08-08-2004 11:36 AM
Password protect pages - htaccess, php, cgi Calisonder Coding Forum 16 11-29-2003 05:41 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:20 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.