prof3ta Posted October 28, 2008 Posted October 28, 2008 Here's the background. New customer contacted me wanting me to move his site from his previous webhost to a new one, cause the guy had just left him hanging with no support. So I dumped the database, copied the files over, created new database and imported it and was sure it was gonna work with no problems. Wrong. I have been dealing with problems for 3 days now, and right now I've gotten it down to 1 thing: Search Engine Safe urls. Its turned on in the oscommerce administration, as it was in the original store, yet, im getting "product not found" pages for every item, even new ones i create. They were using an .htaccess file, which i still use. If I remove it, instead of the "product not found" page i get a 4040 page pretty much. Here's the .htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase /catalog/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} [L] RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} [L] How can I just remove SEF alltogether? Ultimately, I could care less if i use SEF or not. I just want working links to products. Anyone want to take a stab at this one??
prof3ta Posted October 29, 2008 Author Posted October 29, 2008 Shameless bump ! Guys... how do I turn frienly urls off?
germ Posted October 29, 2008 Posted October 29, 2008 <shameless reply> If you turn them off in the admin, and remove/rename the .htaccess file, sometimes you also have to set "Use Cache" to false in the admin to see the effect. </shameless reply> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.