Guest sunspeks Posted July 22, 2005 Share Posted July 22, 2005 I have just changed my website and have started using cubecart. My problem is that with my old site i used to have the different catagories listed in the url which is great for seo purposes. The new urls appear like this http://www.sunspeks.com/index.php?act=viewCat&catId=14 when what i want is for the term kids to be the catagory. I have tried this Options +FollowSymLinks RewriteEngine on RewriteRule kids(.*)-(.*)\.htm$ /index.php?act=$1&catId=$2 But nothing happens to the url, i thought it would change in the address bar. Also, i need to do this to all 17 catogories on my site, So do do i just add the RewriteRule's for the other pages directly under each other? Sorry to be a real newbie but i have tried to find an easy guide but with no joy. Kind regards Mark sunspeks.com Quote Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2005 Share Posted July 22, 2005 try here just wot u need i think search engine url Quote Link to comment Share on other sites More sharing options...
Guest sunspeks Posted July 22, 2005 Share Posted July 22, 2005 :rolly: Wow, thats what i call assistance. Superb!, and thanks a million evilhomer. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2005 Share Posted July 22, 2005 ;) does a little dance i am evilhomer i am evilhomer i am evilhomer doo doo doo doo doo No probs ne time glad to help a cuber Quote Link to comment Share on other sites More sharing options...
Guest sunspeks Posted July 23, 2005 Share Posted July 23, 2005 Me again!!! Sorry but after installing the SE friendly mod ( using winmerge) i had a massive amount of problems so had to revert back to my old unfriendly shop. I had 500 errors so had to delete the .htaccess file which of course had the mod rewrite in it. After that the front page looked ok but when i went to click on a catogory all i got was 404 errors. Is there some secret that i am not aware of with regards .htaccess files? I suppose they do work on all version of apache? There must be a way to write a mod_rewrite so that i can include the catagory names in the URL rather than show the catagory number as in the present url http://sunspeks.com/shop/category/10?PHPSE...69a4050ed5a4a02 The session id killer is a must as well, I may have to get rid of cubecart if i cannot sort this out, my site is in the top page or 2 of all the big engines for my keywords and i cannot afford to drop because of a non SE friendly cart. PLEASE, please , please , somebody help me understand what is happening. Mark sunspeks.com ;) Quote Link to comment Share on other sites More sharing options...
Guest rukiman Posted July 24, 2005 Share Posted July 24, 2005 In regards to the search engine mod... Is your index.php in the root directory or is under some directory. You must modify the .htaccess file if its not in the root directory. i.e if you index.php is in the "shop" directory all line like this RewriteRule ^shop/category/(.*) /index.php?act=viewCat&catId=$1 will become RewriteRule ^shop/category/(.*) /shop/index.php?act=viewCat&catId=$1 I'll add this to the instructions in my next release. In regards to category and product name appearing in the url, the current version of this mod doesn't do this. Its a feature I hope to add in the future. 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.