nick Posted July 1, 2005 Share Posted July 1, 2005 Hey i've just installed this contrib but my Url's aren't being rewritten properly my urls are coming out like /Store/catalog/index.php/cPath/1_17 Tried to find a solution in this htread but coudl'n't find anything, too many pages to sift thru Any help would be appreciated <{POST_SNAPBACK}> Looks like your rewrite engine is either not enabled or not working. My hosted site works ok but I just transferred my site to a local install on my CentOS box and I'm getting the same issue. Will let you know when I fix it - Nick Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 1, 2005 Share Posted July 1, 2005 Fixed it now working like a charm Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 1, 2005 Share Posted July 1, 2005 Fixed it now working like a charm <{POST_SNAPBACK}> But if you are store is in root folder ten only it works like a charm otherwise it is still a problem only Any Help? Quote Link to comment Share on other sites More sharing options...
nick Posted July 1, 2005 Share Posted July 1, 2005 Looks like your rewrite engine is either not enabled or not working. My hosted site works ok but I just transferred my site to a local install on my CentOS box and I'm getting the same issue. Will let you know when I fix it - Nick <{POST_SNAPBACK}> Ok, couple of points - Only works if under root directory - Obviously you need to setup your cache directories per install.html correctly - I had to add "RewriteBase /" to my .htaccess file Still have a couple of issues with popups not working, probably as a result of adding in the RewriteBase / but that is the only way I could get it not to give a Server 500 error, and I get "Unable to determine the page link!" for list of products in any category. Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 1, 2005 Share Posted July 1, 2005 Find this line in url_rewrite.php return $url_parts['scheme'] . '://' . $url_parts['host'] . $url_parts['path'] . '/'; and change the '/'; to '.html'; and replace ? ? ?// Put the request URL into an array ? ? ?$request_url_array = explode('/', trim(getenv('REQUEST_URI'), '/')); with ? ? ? // Put the request URL into an array ? ? ?$url = str_replace('.html', '', getenv('REQUEST_URI')); ? ? ?$request_url_array = explode('/', trim($url, '/')); <{POST_SNAPBACK}> http://myserver:9090/ is changed as http://myserver:9090.html/ Help Plz Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2005 Share Posted July 2, 2005 hi guys, i re-read this topic twice now and i cannot solve my problem. i installed this mod, but the urls do not change. they're still showing up http://mysite.com/product_info.php/product...eef0107b63fd3c2 i have NO other mods installed at all, does this matter? no errors or anything, it just doesn't work. i don't have manufacturers and a few other boxes showing, could that pose a problem? (sorry for the stupid question, i'm new to php and oscommerce) Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 2, 2005 Share Posted July 2, 2005 hi guys, i re-read this topic twice now and i cannot solve my problem. i installed this mod, but the urls do not change. they're still showing up http://mysite.com/product_info.php/product...eef0107b63fd3c2 i have NO other mods installed at all, does this matter? no errors or anything, it just doesn't work. i don't have manufacturers and a few other boxes showing, could that pose a problem? (sorry for the stupid question, i'm new to php and oscommerce) <{POST_SNAPBACK}> Basic Things to check if you want to use SEF urls 1.Apache Mod_rewrite enabled or not Check httpd.conf for the following (should not have # in front of this) LoadModule rewrite_module modules/mod_rewrite.so AddModule mod_rewrite.c 2.In Oscommerce go to admin/configuration/mystore set Use Search-Engine Safe URLs = true 3.In Oscommerce go to admin/configuration/cache Set Cache=true and cache directory to a read/writeable directory 4.check the .htaccess if SEF is still not working then post messages :D :D :D :D Quote Link to comment Share on other sites More sharing options...
♥BlueYon Posted July 2, 2005 Author Share Posted July 2, 2005 hi guys, i re-read this topic twice now and i cannot solve my problem. i installed this mod, but the urls do not change. they're still showing up http://mysite.com/product_info.php/product...eef0107b63fd3c2 i have NO other mods installed at all, does this matter? no errors or anything, it just doesn't work. i don't have manufacturers and a few other boxes showing, could that pose a problem? (sorry for the stupid question, i'm new to php and oscommerce) <{POST_SNAPBACK}> You havce no set it up right if you have session ids in your urls You need tro set force cookies also make sure you have set the cookie domain up. Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 2, 2005 Share Posted July 2, 2005 Hi BlueYon Can you help me in this regard? I had done the modifications for .html extension as you had told But this is what I am getting http://myserver:9090/ is changed as http://myserver:9090.html/Help Plz <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2005 Share Posted July 2, 2005 Basic Things to check if you want to use SEF urls 1.Apache Mod_rewrite enabled or not yes Check httpd.conf for the following (should not have # in front of this) where do i find this? i'm on a shared server. 2.In Oscommerce go to admin/configuration/mystore set Use Search-Engine Safe URLs = true yes 3.In Oscommerce go to admin/configuration/cache Set Cache=true and cache directory to a read/writeable directory yes 4.check the .htaccess yes Quote Link to comment Share on other sites More sharing options...
nick Posted July 2, 2005 Share Posted July 2, 2005 4.check the .htaccessyes <{POST_SNAPBACK}> Check that your .htaccess is being read correctly by putting in a junk entry which will cause a server 500 error. Try addig ThisIsNotADirective to your .htaccess and see if you get the error Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 2, 2005 Share Posted July 2, 2005 Basic Things to check if you want to use SEF urls1.Apache Mod_rewrite enabled or not yes Check httpd.conf for the following (should not have # in front of this) where do i find this? i'm on a shared server. 2.In Oscommerce go to admin/configuration/mystore set Use Search-Engine Safe URLs = true yes 3.In Oscommerce go to admin/configuration/cache Set Cache=true and cache directory to a read/writeable directory yes 4.check the .htaccess yes <{POST_SNAPBACK}> check and set the following settings as mentioned below Admin/Configuration/sessions Force Cookie Use True Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions True Recreate Session False Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 2, 2005 Share Posted July 2, 2005 Hi BlueYon Can you help me in this regard? I had done the modifications for .html extension as you had told But this is what I am getting <{POST_SNAPBACK}> Any Body to help me in this ? BlueYon Can you help me plz? Quote Link to comment Share on other sites More sharing options...
♥BlueYon Posted July 2, 2005 Author Share Posted July 2, 2005 Any Body to help me in this ?BlueYon Can you help me plz? <{POST_SNAPBACK}> This is an easy one i need to check it tomorrow. Also I have found a few bugs relating to sorting the product list. I will fix soon! Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted July 3, 2005 Share Posted July 3, 2005 Any Body to help me in this ?BlueYon Can you help me plz? <{POST_SNAPBACK}> If you want .html extension instead, you would have an easier time using one of these seo url contributions: ultimate seo urls , sef link transformer or nimmit sefs Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
Guest Posted July 3, 2005 Share Posted July 3, 2005 ok i followed your suggestions, and it still doesn't seem to be working. the products show up as catalog/product_info.php/products_id/30 instead of session ids (which isn't what this mod is trying to do?), and when i try to add an item to the cart i get this error: "We have detected that your browser does not support cookies, or has set cookies to be disabled." i have all cookies enabled on my browser. Quote Link to comment Share on other sites More sharing options...
♥BlueYon Posted July 3, 2005 Author Share Posted July 3, 2005 ok i followed your suggestions, and it still doesn't seem to be working. the products show up as catalog/product_info.php/products_id/30 instead of session ids (which isn't what this mod is trying to do?), and when i try to add an item to the cart i get this error: "We have detected that your browser does not support cookies, or has set cookies to be disabled." i have all cookies enabled on my browser. <{POST_SNAPBACK}> Set your cookie domain up in includes/configuration.php cookie domain is normally www.yoursite.com I did say on the instructions if you can not do the first step don't install this mod. Anyway once you do this it should work! Quote Link to comment Share on other sites More sharing options...
Guest Posted July 3, 2005 Share Posted July 3, 2005 the cookie domain is already setup :) there is a lot of basic steps missing out of the installation. this is my first mod for oscommerce, but i've done hundreds for other php/sql programs like invisionboard and whatnot (i'm far from a pro, but i have a basic understanding of things).. so that type of thing is not new to me. but what is new to me is the lack of detailed instructions... like what is the BTS folder for? where does it go, what's it's use?? perhaps including some of what baluvee posted to me in your installation files, there would be less problems with installation? :) i will try another installation tomorrow, thanks for all the help guys :) :) Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 3, 2005 Share Posted July 3, 2005 (edited) If you want .html extension instead, you would have an easier time using one of these seo url contributions: ultimate seo urls , sef link transformer or nimmit sefs <{POST_SNAPBACK}> Thanks for the suggestion. I did already tried all those.But I FEEL this better then others(This is my opinion,so guys don't start the proxy war). So I do request BlueYon to help me out Edited July 3, 2005 by baluvee Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted July 3, 2005 Share Posted July 3, 2005 Thanks for the suggestion.I did already tried all those.But I FEEL this better then others(This is my opinion,so guys don't start the proxy war). So I do request BlueYon to help me out <{POST_SNAPBACK}> I did not suggest the options to start a discussion on which one is the best, but since you for some reason want .html those have it as their standard modus. I personally do favor BlueYon's url formationg, ie. with a / and not a .html B) Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
baluvee Posted July 3, 2005 Share Posted July 3, 2005 I did not suggest the options to start a discussion on which one is the best, but since you for some reason want .html those have it as their standard modus. I personally do favor BlueYon's url formationg, ie. with a / and not a .html B) <{POST_SNAPBACK}> :D :D :D Thanks for the reply Quote Link to comment Share on other sites More sharing options...
baluvee Posted July 4, 2005 Share Posted July 4, 2005 :D :D :D Thanks for the reply <{POST_SNAPBACK}> Hi BlueYon I have a suggestion to make if you can SEF urls like this for products www.myserver.com/DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html for categories www.myserver.com/DVD-Movies/category_id.html www.myserver.com/DVD-Movies/Science-Fiction/category_id.html this is would be the Optimal SEF URLs We do need support for catalog path i.e www.myserver.com/catalog//DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html Think about this Warm Regards (still my problem is not solved.hope you will help me :D :D ) Quote Link to comment Share on other sites More sharing options...
Guest Posted July 5, 2005 Share Posted July 5, 2005 (edited) This is my second attempt at creating a better version of the search engine safe urls. It will change URLS from: http://www.yoursite.com/product_info.php?c...4&products_id=1 to: http://www.yoursite.com/Hardware/Graphics-...atrox-G200-MMS/ You can see it being used on a live site here: http://www.itchi-tech.com <{POST_SNAPBACK}> Hi, Very nice website. How did you disable the right hand side infoblocks? I want to disable my right hand side infoblocks and only keep the left ones. How do I do that? Edited July 5, 2005 by checksum Quote Link to comment Share on other sites More sharing options...
♥BlueYon Posted July 5, 2005 Author Share Posted July 5, 2005 Hi BlueYonI have a suggestion to make if you can SEF urls like this for products www.myserver.com/DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html for categories www.myserver.com/DVD-Movies/category_id.html www.myserver.com/DVD-Movies/Science-Fiction/category_id.html this is would be the Optimal SEF URLs We do need support for catalog path i.e www.myserver.com/catalog//DVD-Movies/Science-Fiction/Blade-Runner-Director39s-Cut/DVD-BLDRNDC.html Think about this Warm Regards (still my problem is not solved.hope you will help me :D :D ) <{POST_SNAPBACK}> it does not matter what is in the URL's as long as it has the keywords in there. Also if i change now like what you have said people are going to install this contribution and find all there urls have changed. The search engines will be leading people to the wrong pages and sales may drop. Its ok how i have set it up. I'm not adding .html to the end because I looks better with just the /. Quote Link to comment Share on other sites More sharing options...
♥BlueYon Posted July 5, 2005 Author Share Posted July 5, 2005 It does not matter what is in the URL's as long as it has the keywords in there. Also if i change now like what you have said people are going to install this contribution and find all their urls have changed. The search engines will be leading people to the wrong pages and sales may drop. Its ok how i have set it up. I'm not adding .html to the end because I looks better with just the /. Ultimate SEO is a good contirbution, but I prefer my urls without the .html. Also having having session ID's in your URL's and not using search engine safe URL's is bad search engine optimization! Spiders can not properly index your web site with session ID's. This is a well know fact and oscommerces built in session ID killer does not work properly because it does not know all the different spiders out there. A lot of copmanies use there made spiders. Once they spider your web site they might put a linki from there site to use in there own related subject directories. the more links the better the search eninge postion! Always use force cookies to get rid of session ids! it works for my site. I'm 3rd psotion in Yahoo, recently dropped to 4th in MSN and at the bottom of the second page for Google. I have around 250,000 unique visitors a month at the moment. My site http://www.itchi-tech.co.uk My main keyword is minimoto Google http://www.google.co.uk/search?q=minimoto&...f&start=10&sa=N Yahoo http://uk.search.yahoo.com/search?fr=fp-ta...moto&meta=vc%3D MSN http://search.msn.co.uk/results.aspx?FORM=...1252&q=minimoto I was first in Google in the USA market over christmas, because I used a .com for the domain name. I then change the domain name in march so I'm still slowly moving back to top postion in Google, but now for the UK market. Also my MSN page dropped from first postion because some moron tryed copying my site who was in the same business. They used MS front page and manged to copy all the content so it looked to the search engines like spam. If I can get to the top 3 postion in Google that is pure money just for a good postion. 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.