flyjedi Posted August 23, 2005 Share Posted August 23, 2005 i'm trying to install this and having the problem that after turning on search engine safe URLS and clicking a product it is going to the correct url but just 404ing. Is there something i need to enable in either httpd.conf or php.ini? <{POST_SNAPBACK}> anyone have a solution to this? Quote :wq! Link to comment Share on other sites More sharing options...
♥BlueYon Posted August 23, 2005 Author Share Posted August 23, 2005 anyone have a solution to this? <{POST_SNAPBACK}> Have you got mod rewrite enabled? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 23, 2005 Share Posted August 23, 2005 I am having issues with forced cookies. When I set Configuration>Sessions>Force Cookie Use to true, a cookie usage warning saying that the browser is not accepting cookies (which it is) gets returned. I understand from the docs that forced cookies are a must and consequently cannot test SEO on our site. Quote Link to comment Share on other sites More sharing options...
flyjedi Posted August 23, 2005 Share Posted August 23, 2005 i'm trying to install this and having the problem that after turning on search engine safe URLS and clicking a product it is going to the correct url but just 404ing. Is there something i need to enable in either httpd.conf or php.ini? anyone have a solution to this? <{POST_SNAPBACK}> Have you got mod rewrite enabled? <{POST_SNAPBACK}> This is the module set I am running from httpd.conf: LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so #LoadModule auth_anon_module modules/mod_auth_anon.so #LoadModule auth_dbm_module modules/mod_auth_dbm.so #LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule headers_module modules/mod_headers.so LoadModule imap_module modules/mod_imap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule status_module modules/mod_status.so #LoadModule unique_id_module modules/mod_unique_id.so LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule ssl_module modules/mod_ssl.so #LoadModule security_module modules/mod_security.dll is it the LoadModule rewrite_module modules/mod_rewrite.so line that what you meant or am i missing something elsewhere? Also can you confirm what you are supposed to have in the .htaccess file. If it matters I am running Apache 2 on Windows 2000. Thanks for the help. Quote :wq! Link to comment Share on other sites More sharing options...
baluvee Posted August 23, 2005 Share Posted August 23, 2005 httpd.conf is okai. check the .htaccess file Quote Link to comment Share on other sites More sharing options...
flyjedi Posted August 23, 2005 Share Posted August 23, 2005 httpd.conf is okai.check the .htaccess file <{POST_SNAPBACK}> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php Thats my .htaccess. Look ok? Quote :wq! Link to comment Share on other sites More sharing options...
baluvee Posted August 23, 2005 Share Posted August 23, 2005 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php Thats my .htaccess. Look ok? <{POST_SNAPBACK}> yes it is okai Quote Link to comment Share on other sites More sharing options...
flyjedi Posted August 23, 2005 Share Posted August 23, 2005 yes it is okai <{POST_SNAPBACK}> so what is it i am missing then because when i enable search engine safe URLs it always comes up with a 404 error. Quote :wq! Link to comment Share on other sites More sharing options...
Guest Posted August 23, 2005 Share Posted August 23, 2005 @All I've made all the neccessary amendments according to the install docs, the site is still working okay but the URLs are as before e.g: http://timexpress-wholesale.de/product_inf...4/products_id/1 I have noticed info in the forum concerning header tags etc. Is this a must in order to get SEF to work?? If not, any clues as to what may be wrong? Ta! Steve Quote Link to comment Share on other sites More sharing options...
Guest Posted August 23, 2005 Share Posted August 23, 2005 Quick update: Meta Tag Controller V1.0 has been installed and works fine. Unfortunately SEO is still having no impact. Any help would be greatly appreciated. Steve Quote Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 Dude your newest contribution v1.1 is the BOMB! I am not having a single issue now with this new code! Before I was having server timeouts or something and now nothing is faulting! Thank you for such a great contribution! This will no doubt improve search engine rankings! MLHmptn <{POST_SNAPBACK}> HELP! I am installing the Seach Engine Friendly URL V1.8 right now and it is late and I am hungry but too anxious to finish this soon! I am confused here: where should I put it exactly? ==== Step #6 - In In /admin/includes/functions/general.php Before code } (around line 956) add this code @unlink(DIR_FS_CACHE . 'url.cache'); Note: This should be the at the end of the tep_reset_cache_block function =====> I found TWO OF the tep_reset_cache_block function so which one? And before which bracket? ------Copy and paste from the /admin/includes/functions/general.php ====>*here?* Please point to us which location? if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); *here?* } *here?*} function tep_remove_product($product_id) { $product_image_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'"); $product_image = tep_db_fetch_array($product_image_query); $duplicate_image_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " where products_image = '" . tep_db_input($product_image['products_image']) . "'"); $duplicate_image = tep_db_fetch_array($duplicate_image_query); if ($duplicate_image['total'] < 2) { if (file_exists(DIR_FS_CATALOG_IMAGES . $product_image['products_image'])) { @unlink(DIR_FS_CATALOG_IMAGES . $product_image['products_image']); } } tep_db_query("delete from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'"); $product_reviews_query = tep_db_query("select reviews_id from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'"); while ($product_reviews = tep_db_fetch_array($product_reviews_query)) { tep_db_query("delete from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$product_reviews['reviews_id'] . "'"); } tep_db_query("delete from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'"); if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); *here?* } *here?* } Quote Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 without knowwing what line #'s, hard to say. what happens when you try it there? that is the best thing to do. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2005 Share Posted August 26, 2005 Thank God it works! I put the @unlink(DIR_FS_CACHE . 'url.cache'); after the ==== Step #6 - In In /admin/includes/functions/general.php if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); *I PUT IT HERE* } } function tep_remove_product($product_id) { $product_image_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'"); $product_image = tep_db_fetch_array($product_image_query); $duplicate_image_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " where products_image = '" . tep_db_input($product_image['products_image']) . "'"); $duplicate_image = tep_db_fetch_array($duplicate_image_query); if ($duplicate_image['total'] < 2) { if (file_exists(DIR_FS_CATALOG_IMAGES . $product_image['products_image'])) { @unlink(DIR_FS_CATALOG_IMAGES . $product_image['products_image']); } } tep_db_query("delete from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'"); $product_reviews_query = tep_db_query("select reviews_id from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'"); while ($product_reviews = tep_db_fetch_array($product_reviews_query)) { tep_db_query("delete from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$product_reviews['reviews_id'] . "'"); } tep_db_query("delete from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'"); if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); *not here you dummie* } *neither here* } =================== Now I got my products to look like these: http://awaskemalangan.com/SAFETY-PRODUCTS/...E-TALKIE-WT440/ Well that's good enough! Thankxxxx BlueYon your SEO Contrib really works! ANybody here follows this topic anymore? **** BlueYon: the mini bikes store is COOL! BTW why not add some animation and some flip movie / views from different angles using Java Script that I contributed.. http://www.oscommerce.com/community/contributions,3473 Lively Shops! *Suggestion: a flip movie of a dirtbiker darting and freestyling on air would be nice to greet your visitors!:) Quote Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2005 Share Posted August 27, 2005 (edited) How about some help for a small guy? There are a couple of postings a bit further up the page, I'd really appreciate some help. Thanks, Steve Edited August 27, 2005 by sbla Quote Link to comment Share on other sites More sharing options...
Jumping Rabbit Posted August 27, 2005 Share Posted August 27, 2005 I am having issues with forced cookies. When I set Configuration>Sessions>Force Cookie Use to true, a cookie usage warning saying that the browser is not accepting cookies (which it is) gets returned. I understand from the docs that forced cookies are a must and consequently cannot test SEO on our site. <{POST_SNAPBACK}> This usually means that your includes/configure.php file is correctly set up. You should check the cookies path in that file. Quote Faster Checkout - osCommerce Knowledge Base - Anyone meet offline?, Has anyone of you cyberkids meet offline? For newbees do atleast read this 4 points: Basic info - Search tips and help - Posting tips and help - Basics for Design Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2005 Share Posted August 27, 2005 This usually means that your includes/configure.php file is correctly set up. You should check the cookies path in that file. <{POST_SNAPBACK}> Thanks for that Jenny, An incorrect path was the first problem, also the fact that we were using a shared ssl certificate. Both are now sorted. Are you using SEO? If so did you have any probs installing it? Thanks, Steve Quote Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2005 Share Posted August 27, 2005 Thanks for that Jenny,An incorrect path was the first problem, also the fact that we were using a shared ssl certificate. Both are now sorted. Are you using SEO? If so did you have any probs installing it? Thanks, Steve <{POST_SNAPBACK}> I've just done a clean install and it works well, there must be a conflict with one of the other contribs. S Quote Link to comment Share on other sites More sharing options...
Ricsen Posted August 27, 2005 Share Posted August 27, 2005 Hi, I want to try to install this contribution and it ask me to replace my index.php is there anyone know which code that i need to change inside index.php instead replacing the file because i have made some changing inside the index.php for other contribution. Thank you, Ricsen Quote Link to comment Share on other sites More sharing options...
Jumping Rabbit Posted August 28, 2005 Share Posted August 28, 2005 (edited) Hi, I want to try to install this contribution and it ask me to replace my index.phpis there anyone know which code that i need to change inside index.php instead replacing the file because i have made some changing inside the index.php for other contribution. Thank you, Ricsen <{POST_SNAPBACK}> For this contribution the index.php has been merget together with product_info.php, ie. when you view the product detail page it is shown from index.php insted of from product_info.php as usuall. Basically whats added in index.php are: One extra conditional statement regarding product id and the code for showing the product details page. Get a file compare tools and you can easily find the added code. Edited August 28, 2005 by Jumping Rabbit Quote Faster Checkout - osCommerce Knowledge Base - Anyone meet offline?, Has anyone of you cyberkids meet offline? For newbees do atleast read this 4 points: Basic info - Search tips and help - Posting tips and help - Basics for Design Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2005 Share Posted August 28, 2005 Hi all, Has anyone implemented this contrib in conjunction with the "Seperate pricing per customer" contrib? I tried yesterday and had problems, SPPC was installed and working okay, this was then,installed on a completely different installation of OSC (same site but different sql database etc.). This worked fine but caused problems with SPPC, some of the probs could be fixed by changing GET to POST on SPPC. Other issues remained on the SPPC site even after uninstalling this and the db this was working from. Thanks for any advice, Steve Quote Link to comment Share on other sites More sharing options...
Jumping Rabbit Posted August 28, 2005 Share Posted August 28, 2005 Hi all, Has anyone implemented this contrib in conjunction with the "Seperate pricing per customer" contrib? I tried yesterday and had problems, SPPC was installed and working okay, this was then,installed on a completely different installation of OSC (same site but different sql database etc.). This worked fine but caused problems with SPPC, some of the probs could be fixed by changing GET to POST on SPPC. Other issues remained on the SPPC site even after uninstalling this and the db this was working from. Thanks for any advice, Steve <{POST_SNAPBACK}> Any seo/sef contrib might cause problems with other mods working on cpath and/or product_id parameters... If you are aware of this, you should be able to make the relevant changes where needed. Quote Faster Checkout - osCommerce Knowledge Base - Anyone meet offline?, Has anyone of you cyberkids meet offline? For newbees do atleast read this 4 points: Basic info - Search tips and help - Posting tips and help - Basics for Design Link to comment Share on other sites More sharing options...
peimei Posted August 28, 2005 Share Posted August 28, 2005 I have installed this contribution, and everything looks/works great, except when I go to add a product to my cart. I can get the product_info to come up, and does the rewrite just fine, with a URL that looks like: https://www.mydomain.com/Name-Stool/ BUT then when I click on "Add to Cart", I get a 404 Not Found on a URL that looks like this: https://www.mydomain.com/product_info.php/p...ion/add_product So it seems like the rewrite is working in the first case, but not in the second. Has anyone experienced this same problem, and know a fix???? Thanks so much, peimei :blink: Quote Link to comment Share on other sites More sharing options...
peimei Posted August 28, 2005 Share Posted August 28, 2005 BUT then when I click on "Add to Cart", I get a 404 Not Found on a URL that looks like this: https://www.mydomain.com/product_info.php/p...ion/add_product So it seems like the rewrite is working in the first case, but not in the second. Has anyone experienced this same problem, and know a fix???? <{POST_SNAPBACK}> Let me clarify on my problem with "adding to cart", since the link above has abbreviated itself. The form action creating the 404 for "add to cart" is a URL that looks like this (mouse over the link below to view the full link): https://www.mydomain.com/product_info.php/p...ion/add_product Quote Link to comment Share on other sites More sharing options...
toutouyoutou Posted September 1, 2005 Share Posted September 1, 2005 sorry the install say insert "@unlink(DIR_FS_CACHE . 'url.cache');" dahui <{POST_SNAPBACK}> Hi dahui yes the actual position is : @unlink(DIR_FS_CACHE . $cached_file); } } break; } } @unlink(DIR_FS_CACHE . 'url.cache'); } but if you get a misconfig error message, it's probably because you have not enabled the cache in the admin section yet Quote Link to comment Share on other sites More sharing options...
chocolategelt Posted September 1, 2005 Share Posted September 1, 2005 Can someone please post sql queries. It's not working for me through the install-sef.php. It just freezes and doesn't run any queries, no table is created etc.. I want to just upload it manually through mysql admin, but can't find the actual file with those queries. Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.