views:

54

answers:

2

I have 2 sites on one Magento install that point to different domains.

Site1 => www.site1.com

Site2 => www.site2.com

Each site shows the store code in the url of category, product, and CMS pages (www.site1.com/store1/category). Is there a way to remove the /store1/ from the url so that is just www.site1.com/category? My guess is that can be done with .htaccess somehow.

A: 

TRY THIS .htaccess

Options +FollowSymLinks

RewriteEngine On
RewriteBase /

RewriteRule ^([A-Za-z0-9_]+)/category(-([0-9]+))? category.php?store=$1&id=$3 [L] 
jatt
A: 

Since you have two different websites I don't think you need that anyway, I think there is a setting in system < config < web Add Store Code to Urls and you should try setting that to no and then reindex.

dan.codes
I've set "Add Store Code to Urls" to no before and got __store= in the URL, but I think that was because I had two stores on one site. Now that I only have one store each site this works. Thanks.
JonP