|Posted: 28 July 2009 at 12:22am
My old written url is http://www.oflowers.in/subcat-2-7/raksha-bandhan-gifts.htm and i want to my new url like this http://www.oflowers.in/Raksha-Bandhan/2/7/raksha-bandhan-
The rules which i have written for new url is:
RewriteRule /fnp/(.*)/(.*)/(.*)/(.*).htm /fnp/Product.aspx?ID=$2&subcatid=$3
But the problem is that both the old and new url's are working instead what i want is to redirect the old url to the new url.
I have written the url for the above mentioned task as:
RewriteRule /fnp/SubCat-2-7/Raksha-Bandhan.htm http://localhost/fnp/Raksha-Bandhan/2/7/raksha-bandhan-gifts.htm [I,O,RP,L]
This is working fine on my local machine but when i am uploading it on the server it displays:
The page has been moved to http://www.oflowers.in/Raksha-Bandhan/2/7/raksha-bandhan-gifts.htm.