tareqshaw Posted August 13, 2016 Share Posted August 13, 2016 how i can remove parameters from url , like i have page http://www.abc.pk/index.php?_a=viewCat&cat_id=1 to http://www.pakonlineshop.pk/mens-fashion i have tried many options but did not get , if i use this rule #RewriteCond %{QUERY_STRING} (.*)$ #RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ([^/]*)$ index.php?_a=viewCat&cat_id=$1 [NC] this loads some category's products on http://www.pakonlineshop.pk Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted August 13, 2016 Share Posted August 13, 2016 Welcome to the forums, tareqshaw! I think the url you don't want is the way it looks when the SEO urls are not being used. What CubeCart version and skin are you using? This might help: Rename your current .htaccess file and let CubeCart create another one by default, and see if that helps. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 13, 2016 Share Posted August 13, 2016 CubeCart 6 works this way. There is no work involved to do this. From what I can tell, your site is running CubeCart 3 or CubeCart 4. If CC3, you will need to find a mod that will add the necessary internal coding. CC4 may do this, but I am not that familiar with CC4. What version of CubeCart are you running? Quote Link to comment Share on other sites More sharing options...
tareqshaw Posted August 13, 2016 Author Share Posted August 13, 2016 i am using cubecart 4 , can't we do this by htaccess ? 7 minutes ago, Dirty Butter said: Welcome to the forums, tareqshaw! I think the url you don't want is the way it looks when the SEO urls are not being used. What CubeCart version and skin are you using? This might help: Rename your current .htaccess file and let CubeCart create another one by default, and see if that helps. i am using cubecart4 , i have done it by getting category name from url , then i get category id from that name and pass to query on page Quote Link to comment Share on other sites More sharing options...
tareqshaw Posted August 13, 2016 Author Share Posted August 13, 2016 i want to add rule if page is index.php?_a=viewCat&cat_id=1 if this is my url i want to add some rule in htaccess file 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.