Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

swekidz

Pioneers
  • Posts

    42
  • Joined

  • Last visited

Everything posted by swekidz

  1. Hi FWR How can i fix that ? if i enter http://fi.homepage.com it sends me to http://www.homepage.com I Have checked .htaccess its ok sow it must be Seo urls that sends me to http://www.homepage.com /Best Regards Marcus
  2. Hi I have a homepage like www.homepage.com but now im gona install new Languages and gona use http://fi.homepage.com and http://no.homepage.com but when i have install that and enter like http://fi.homepage.com it sends me to http://www.homepage.com /Best Regards SweKidz- Marcus
  3. Hi FWR Media I have used this contrib for month working very good , but now i must have a underdomän like no.hompage.com but when a go there it sends me to www.homepage.com How can i fix that ? /Regards Marcus
  4. Remove Manufactors from Titel on products how can i do that ? /Best Regards Marcus
  5. Hi Can you help me with this ? /Regards Marcus quote name='swekidz' date='19 February 2010 - 11:43 AM' timestamp='1266579792' post='1486227'] Hi This works GREAT :thumbsup: , it have fix mutch on my shop , but i want to remove the Manufacturer from the titel. How can i do that ? /Best Regards Marcus
  6. Hi This works GREAT :thumbsup: , it have fix mutch on my shop , but i want to remove the Manufacturer from the titel. How can i do that ? /Best Regards Marcus
  7. Hi FWR Media I Have find that but i want to write my own keywords for index , i have found the titel and description How can i make that ? /Regards Marcus
  8. Hi Again I have one more question, how can i set my own keywords on index ? /Thx for helping with this great contrib /Regards Marcus
  9. Hi This contrib works great , THX . But i have a question how can i get the åäö to work Is that correct ? Massagebänkar och Massagestolar för bättre hälsa This is the correct typing: Massagebänkar och Massagestolar för bättre hälsa Is there anyone that have any proposal or idea of my homepage : http://www. swehealth.se /Regards Marcus
  10. Hi Spooks! Thanks for the help! Now it works :) /Best Regards Marcus
  11. Hi When i installs the new 1.3 when i look at the code it says : Warning: array_merge(): Argument #2 is not an array in /hsphere/local/home/swehealth/swehealth.se/includes/functions/html_output.php on line 353 Warning: Invalid argument supplied for foreach() in /hsphere/local/home/swehealth/swehealth.se/includes/functions/html_output.php on line 355 this code : // remove duplicate content with canonical tag by Spooks 12/2009 function CanonicalLink( $xhtml = false , $ssl = 'SSL' ) { global $request_type; $rem_index = false; // Set to true to additionally remove index.php from the uri $close_tag = ( false === $xhtml ? ' >' : ' />' ); $spage = ''; $domain = ( $request_type == 'SSL' && $ssl == 'SSL' ? HTTPS_SERVER : HTTP_SERVER ); // gets the base URI // Find the file basename safely = PHP_SELF is unreliable - SCRIPT_NAME can show path to phpcgi if ( array_key_exists( 'SCRIPT_NAME', $_SERVER ) && ( substr( basename( $_SERVER['SCRIPT_NAME'] ), -4, 4 ) == '.php' ) ) { $basefile = basename( $_SERVER['SCRIPT_NAME'] ); } elseif ( array_key_exists( 'PHP_SELF', $_SERVER ) && ( substr( basename( $_SERVER['PHP_SELF'] ), -4, 4 ) == '.php' ) ) { $basefile = basename( $_SERVER['PHP_SELF'] ); } else { // No base file so we have to return nothing return false; } // Don't produce canonicals for SSL pages that bots shouldn't see $ignore_array = array( 'account', 'address', 'checkout', 'login', 'password', 'logoff' ); // partial match to ssl filenames foreach ( $ignore_array as $value ) { $spage .= '(' . $value . ')|'; } $spage = rtrim($spage,'|'); if (preg_match("/$spage/", $basefile)) return false; // REQUEST_URI usually doesn't exist on Windows servers ( sometimes ORIG_PATH_INFO doesn't either ) if ( array_key_exists( 'REQUEST_URI', $_SERVER ) ) { $request_uri = $_SERVER['REQUEST_URI']; } elseif( array_key_exists( 'ORIG_PATH_INFO', $_SERVER ) ) { $request_uri = $_SERVER['ORIG_PATH_INFO']; } else { // we need to fail here as we have no REQUEST_URI and return no canonical link html return false; } $remove_array = array( 'currency','language','main_page','page','sort','ref','affiliate_banner_id','max'); // Add to this array any additional params you need to remove in the same format as the existing $page_remove_array = array(FILENAME_PRODUCT_INFO => array('manufacturers_id', 'cPath'), FILENAME_DEFAULT => array() ); // remove page specific params, should be in same format as previous, given is manufacturers_id & cPath // have to be removed in product_info.php only $remove_array = array_merge($remove_array, $page_remove_array[$basefile]); foreach ( $remove_array as $value ) { $search[] = '/&*' . $value . '[=\/]+\w*\/?/i'; } $search[] = ('/&*osCsid.*/'); $search[] = ('/\?\z/'); if ($rem_index) $search[] = ('/index.php\/*/'); $request_uri = preg_replace('/\?&/', '?', preg_replace($search, '', $request_uri )); echo '<link rel="canonical" href="' . $domain . $request_uri . '"' . $close_tag . PHP_EOL; } /// /Regards Marcus
  12. Hi The problem thats left is this : http://www. homepage.se/allprods.php/sort/2a/page/5" > /Regards Marcus
  13. Hi When i installed this it was like this : /?manufacturers_id=12&cpath=29&products_id=109" > before it was : /?manufacturers_id=12 Do you now whats wrong then ? /Best Regards Marcus
  14. Hi again :) What about this code were should i put that : $remove_array_page = array('product_info.php' => array('manufacturers_id') // e.g. manufacturers_id has to be removed in product_info.php ,'index.php' => array() // e.g. nothing to remove in addition to the general-remove-array in index.php ,'allprods.php' => array('fl') ,'specials.php' => array('products_id') ); /Regards SweKidz - Marcus
  15. Hi Spooks Thanks to you to Spooks About robots.txt what should a write there to remove the buy_now ? /Best Regards Marcus
  16. Hi Peter Thanks for helping me this is what i have : // remove duplicate content with canonical tag by Spooks 12/2009 function CanonicalLink( $xhtml = false , $ssl = 'SSL' ) { global $request_type; $close_tag = ( false === $xhtml ? ' >' : ' />' ); $spage = ''; $domain = ( $request_type == 'SSL' && $ssl == 'SSL' ? HTTPS_SERVER : HTTP_SERVER ); // gets the base URI // Find the file basename safely = PHP_SELF is unreliable - SCRIPT_NAME can show path to phpcgi if ( array_key_exists( 'SCRIPT_NAME', $_SERVER ) && ( substr( basename( $_SERVER['SCRIPT_NAME'] ), -4, 4 ) == '.php' ) ) { $basefile = basename( $_SERVER['SCRIPT_NAME'] ); } elseif ( array_key_exists( 'PHP_SELF', $_SERVER ) && ( substr( basename( $_SERVER['PHP_SELF'] ), -4, 4 ) == '.php' ) ) { $basefile = basename( $_SERVER['PHP_SELF'] ); } else { // No base file so we have to return nothing return false; } // Don't produce canonicals for SSL pages that bots shouldn't see $ignore_array = array( 'account', 'address', 'checkout', 'login', 'password', 'logoff' ); // partial match to ssl filenames foreach ( $ignore_array as $value ) { $spage .= '(' . $value . ')|'; } $spage = rtrim($spage,'|'); if (preg_match("/$spage/", $basefile)) return false; // REQUEST_URI usually doesn't exist on Windows servers ( sometimes ORIG_PATH_INFO doesn't either ) if ( array_key_exists( 'REQUEST_URI', $_SERVER ) ) { $request_uri = $_SERVER['REQUEST_URI']; } elseif( array_key_exists( 'ORIG_PATH_INFO', $_SERVER ) ) { $request_uri = $_SERVER['ORIG_PATH_INFO']; } else { // we need to fail here as we have no REQUEST_URI and return no canonical link html return false; } $remove_array = array( 'currency','language','fl','main_page','page','cpath','products_id','sort','ref','affiliate_banner_id','max'); // Add to this array any additional params you need to remove in the same format as the existing foreach ( $remove_array as $value ) { $search[] = '/&*' . $value . '=\w*/'; } $search[] = ('/&*osCsid.*/'); $search[] = ('/\?\z/'); $request_uri = preg_replace('/\?&/', '?', preg_replace($search, '', $request_uri )); echo '<link rel="canonical" href="' . $domain . $request_uri . '"' . $close_tag . PHP_EOL; } /// /Regards SweKidz - Marcus
  17. Hi You are great i have removed mutch problems now but these will not disapear : /allprods.php/sort/2a/action/buy_now/products_id/366 /allprods.php/sort/2a/action/buy_now/products_id/54 /allprods.php/sort/2a/page/2 /allprods.php/sort/2a/page/4 /allprods.php/sort/2a/page/5 /allprods.php/sort/2a/page/6 /specials.php/products_id/491 /specials.php?products_id=477 This url your script works fine : /allprods.php?sort=2a&page=4 this will be = allprods.php But the other there i cant find out how i can remove that 8 urls , do you have any ide ? /Best Regards Marcus
  18. Hi Great contrib , i have a question about this url : http://www. homepage.se/?currency=eur&cpath=36_43 with this contrib the the canonical link is like this =<link rel="canonical" http://www. homepage.se/?cpath=36_43 http://www. homepage.se/?eur&cpath=21_65 with this contrib the canonical link is like this =<link rel="canonical" http://www. homepage.se/?eur&cpath=21_65 Is it possible to to make this urls to <link rel="canonical" http://www.homepage.se/ Instead of the http://www. homepage.se/?cpath=36_43 , http://www. homepage.se/?eur&cpath=21_65 ? Is that possible ? /Best Regards Marcus
  19. You see xhtml on the page is that the close of xhtml canonical tag ? /Regards Marcus
  20. Hi thanks for make these great contribs : I Have a problem on my site i cant remove the currency with this canonial tag and on allproducts it should be canonical tag when to http://www.swehealth.se/allprods.php'>http://www.swehealth.se/allprods.php becouse now i get dublicate on allproducts pages. This is the homepage : http://www. swehealth.se/index.php?currency=eur http://www. swehealth.se/allprods.php?fl=B When i installs the canonical tag it it will be <link rel="canonical" href="http://www. swehealth.se/allprods.php?fl=B" > It want it to be <link rel="canonical" href="http://www. swehealth.se/allprods.php" > on allproducts pages /Best Regards Marcus
  21. Ok , thanks what means with xhtml ? is that about the canonical tag ? /Best Regards Marcus
  22. Okey , thanks for the information what you think about the urls , that the old one is showing in google webmaster tools. This is the homepage : www .swekidz.se Can you look if you see something wrong on the homepage Thanks FWR
  23. Hi This i Titel -> Tvillingvagn - Duo Driver - Blå Svart old url -> www.homepage.com/tvillingvagn-driver-svart-p-243.html new url -> www.homepage.com/tvillingvagn-duo-driver-bla-svart-p-243.html I have submited a new sitemap , i have canonical tags tags now to. About this KissMT -> I have write meta tags by my self now , what will happend if i installs KissMT will the old ones disapear then ?
  24. This is working very good FWR :thumbsup: , but i have cuestion about google webmaster tools i have about 20 dublicates there Tvillingvagn - Duo Driver - Blå Svart /tvillingvagn-driver-svart-p-243.html /tvillingvagn-duo-driver-bla-svart-p-243.html This is the correct adress : /tvillingvagn-duo-driver-bla-svart-p-243.html And the seo urls is redirect it correct but after some weeks the dublicates are still there. How can i get away the dublicates must do something els to ? /Best Regards Marcus
×
×
  • Create New...