iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Tags
.htaccess, mod-rewrite

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2009, 08:42 PM
WebProWorld Member
 
Join Date: Dec 2006
Location: Los Angeles
Posts: 62
doj464 RepRank 0
Default .htaccess Error?? - Products not showing up!

Hi Guys,

I just uploaded a .htaccess file to my clients site - www.westerndrugmedical.com, and it somehow completely wrecked the site. I removed the .htaccess file, and it's still all messed up.

I asked one of my web design partners about it, and he suggested that they are using a mod-rewrite from within the site.

I've got all of the database information, and I think it's possible to manually rewrite all of the product and category names, but I'd love some help from the community in fixing it up.

I'm not a programmer/developer by trade, just an SEO/SEM guy.

The cart I'm using is Squirrel Cart, and they have a pretty complex way of relating numerous databases, which is getting me lost.

--------------------------------------------------------------

The URL's that got rewritten on the site that don't work.

http://www.westerndrugmedical.com/Ba...-Equipment.php

This is a category URL that's already been rewritten.

There's also a rewritten product URL:

http://www.westerndrugmedical.com/50...on=show_detail

---------------------------------------------------------------

The ones that are in their "Pre SEO URL" state.

Category ??

Bath safety products, shower chairs, tub bars, transfer benches

This one works fine. So CRN stands for Category record number

Product

Guardian Easy Care Folding Walker

--------------------------------------------------------------

Databases:

1) There's a table called products with SEO'd URL's.

The product base has the following (relevant) columns:
record number
SEO URL (which contains the optimized URL)

2) There's a table with categories as well that has the SEO'd URL's.

3) There's a database tying the back the sub-categories to parent categories, and the products to the relevant categories.

--------------------------------------------------------------

I was thinking of creating a .htaccess file that redirects the original URL to the correct one by stringing the databases together in access, exporting it to excel, and concatenating everything...

but it's a bit over my head. Of course, all help would be appreciated. Hehe, if I could find the original settings, I would be a really happy man.

David
Reply With Quote
  #2 (permalink)  
Old 02-05-2009, 07:21 PM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default Re: .htaccess Error?? - Products not showing up!

I don't know the exact database structure, but that seems like over complicating things.

Have you tried doing the below for the products:

RewriteRule ^product/([\d\/]+)/([\d\/]+)/(.*) /store.php?crn=$1&rn=$2&action=show_detail [L,I]

so
http ://www.westerndrugmedical.com/store.php?crn=210&rn=389&action=show_detail

would become:

http ://www.westerndrugmedical.com/product/210/389/Guardian_Easy_Care_Folding_Walker
Reply With Quote
  #3 (permalink)  
Old 02-05-2009, 07:28 PM
SemAdvance's Avatar
WebProWorld Veteran
 
Join Date: Dec 2005
Location: In Your Mind
Posts: 788
SemAdvance RepRank 3SemAdvance RepRank 3SemAdvance RepRank 3
Default Re: .htaccess Error?? - Products not showing up!

I checked the site and the urls are fine....If I were you I'd leave things alone less you destroy the site and lose the client......

the last person to access about server routines is a designer....that would be like asking me to design a site

LOL
LOL
LOL

I'm actually great at stickman design ;->
Reply With Quote
  #4 (permalink)  
Old 02-05-2009, 07:39 PM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default Re: .htaccess Error?? - Products not showing up!

Actually I'm not a designer, and no the links don't work.

If the links worked, he wouldn't be posting and the beriatric link takes you to the home page and not the correct page.

So do all of the htaccessed' URLs not work, or just a few?
Reply With Quote
  #5 (permalink)  
Old 02-12-2009, 06:38 AM
edhan's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
Default Re: .htaccess Error?? - Products not showing up!

I have just tested the site, everything seems to be working fine. I am able to see the products and going through the shopping cart to checkout.
Reply With Quote
  #6 (permalink)  
Old 06-29-2009, 10:39 AM
WebProWorld Member
 
Join Date: Apr 2009
Posts: 42
Bernd RepRank 0
Default Re: .htaccess Error?? - Products not showing up!

Quote:
Originally Posted by doj464 View Post
I removed the .htaccess file, and it's still all messed up.
Next time clear your browsercache and check whether the serverside software has a caching-function too. A SEO should know this.
__________________
Swedish Knäckebrottanz
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
www.seoworkers.com showing error subhzash Search Engine Optimization Forum 34 06-03-2008 07:14 AM
500 server error from htaccess inertia Search Engine Optimization Forum 12 05-09-2008 04:40 AM
This page is showing an error....why? watto Web Programming Discussion Forum 4 05-14-2007 05:33 PM
Setting up customized error page with .htaccess protection StephenGarcia Web Programming Discussion Forum 1 12-20-2004 07:07 PM
Error Pages showing in stats kengeddes Graphics & Design Discussion Forum 1 06-06-2004 01:46 PM


All times are GMT -4. The time now is 04:31 PM.



Search Engine Optimization by vBSEO 3.3.0