Guest Posted September 28, 2005 Posted September 28, 2005 i'm using nimmit sef url's contribution the pull-down for manufacturers does not translate to the /brand/brand_name.html unless it is linked on the page. the manufacturer pull down menu (which is a part of the basic oscommerce set up), shows up like this after i select a manufacturer: http://www.mywebsite.com/index.php?manufacturers_id=113 only once the manufacturers section is LINKED on the page, does it show properly. google has stated publicly this type of action will hurt you, how can i fix this? in manufacturers' source code i can see the ?manufacturers_id= ... but i'm not sure what i would have to do to fix it and make the url look like: http://www.mysite.com/brand/brand_name.html also, when i access http://mysite.com this contribution doesn't work, it shows me a url like: http://www.mysite.com/index.php?cPath=67 is there a fix for this, or how can i make a 301 on http://mysite.com redirect to http://www.mysite.com ?
Darklings Posted September 28, 2005 Posted September 28, 2005 i'm using nimmit sef url's contribution the pull-down for manufacturers does not translate to the /brand/brand_name.html unless it is linked on the page. Maybe best way is try out the suport forum for this contrib?? google has stated publicly this type of action will hurt you, how can i fix this? in manufacturers' source code i can see the ?manufacturers_id= ... but i'm not sure what i would have to do to fix it and make the url look like: http://www.mysite.com/brand/brand_name.html What action are you talking about here? the "?" and "&" in urls? I heard that 'used' to be a problem - but i dont see any today - (just did a search on google with mycompany_name +products as search string, at number two i had the index page and right under it i had www.myshop.com/index.php?cPath=21 ) Secondly - i never heard of the contribution you are using - but have heard a lot about chemo's SEO url - maybe thats better? i dont know - since i wont take the time to install it... since my search proved google has no problem with my site and the questionmarks in the urls... is there a fix for this, or how can i make a 301 on http://mysite.com redirect to http://www.mysite.com ? dont know exactly what you want - but this is how you make a redirect for your www thingy ( ar 301 redirect is easier): in your /htaccess file you add: RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule (.*) http://www.example.com/$1 [R=301,L] Hope this helps.. kind regards, Tom Even in this dark place, yes, I am afraid of my own shadow. Contributions | KnowledgeBase | osCommerce 2.2 pdf
Guest Posted September 28, 2005 Posted September 28, 2005 Maybe best way is try out the suport forum for this contrib?? nimmit stated he/she isn't supporting it anymore What action are you talking about here? the "?" and "&" in urls? I heard that 'used' to be a problem - but i dont see any today - (just did a search on google with mycompany_name +products as search string, at number two i had the index page and right under it i had www.myshop.com/index.php?cPath=21 ) having the urls like that isn't the problem. the problem is when i link to a manufacturer page (i have them rotating in a banner exchange on my site) the urls appear like: http://www.mysite.com/brand/brand+name.html so in sense, there are two different url's for the same page. that's a no no according to google. dont know exactly what you want - but this is how you make a redirect for your www thingy ( ar 301 redirect is easier): i already have manufacturers 301'd. i think what i'm trying to achieve needs to be edited via oscommerce and not htaccess. here is nimmit's htacess: # -----> NIMMIT:SEF:B RewriteEngine on RewriteBase / #-----> single file no vars RewriteRule ^([^/]*)\.html$ $1.php?%{QUERY_STRING} [NC] #-----> one var RewriteRule ^/?(product)/([^/]*)\.html$ product_info.php?products_id=$2&%{QUERY_STRING} [NC] RewriteRule ^/?(category)/([^/]*)\.html$ index.php?cPath=$2&%{QUERY_STRING} [NC] RewriteRule ^/?(brand)/([^/]*)\.html$ index.php?manufacturers_id=$2&%{QUERY_STRING} [NC] #-----> two vars RewriteRule ^/?(category)/(.*)/(product)/([^/]*)\.html$ product_info.php?cPath=$2&products_id=$4&%{QUERY_STRING} [NC] RewriteRule ^/?(brand)/(.*)/(product)/([^/]*)\.html$ product_info.php?manufacturers_id=$2&products_id=$4&%{QUERY_STRING} [NC] #-----> Reviews RewriteRule ^/?(product_reviews_write|product_reviews|product_reviews_info)/product/([^/]*)\.html$ $1.php?products_id=$2&%{QUERY_STRING} [NC] RewriteRule ^/?(product_reviews_write|product_reviews|product_reviews_info)/category/(.*)/product/([^/]*)\.html$ $1.php?cPath=$2&products_id=$3&%{QUERY_STRING} [NC] RewriteRule ^/?(product_reviews_write|product_reviews|product_reviews_info)/brand/(.*)/product/([^/]*)\.html$ $1.php?manufacturers_id=$2&products_id=$3&%{QUERY_STRING} [NC] #-----> products new RewriteRule ^/?(products_new)/product/([^/]*)\.html$ $1.php?products_id=$2&%{QUERY_STRING} [NC] # -----> NIMMIT:SEF:E
Guest Posted September 28, 2005 Posted September 28, 2005 i don't know php very good, so how can i make my urls look like http://www.mysite.com/brand/brand+name.html (like nimmit's contribution is supposed to do) WHILE using the manufacturer's pull down menu? here is the code from includes/boxes/manufacturers.php which i would assume needs a bit of editing to do this? // Display a drop-down $manufacturers_array = array(); if (MAX_MANUFACTURERS_LIST < 2) { $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); } while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id()); } new infoBox($info_box_contents); ?>
Guest Posted September 30, 2005 Posted September 30, 2005 i figured out how to change my urls from mysite.com to www.mysite.com if anybody else can help me with the other problem i'm having i would greatly appreciate it :)
Guest Posted October 1, 2005 Posted October 1, 2005 i will pay anybody $10.00 u.s. who can help me solve this manufacturers pull down menu problem
Recommended Posts
Archived
This topic is now archived and is closed to further replies.