I moved my site from old domain to new domain. I implemented 301 redirection. All is redirecting good but I have 5 links indexed by google which have id's in URL. Url goes like this www. olddomain.com/food/food.php?articleid=34 I implemented this in .htaccess redirect 301 /food/food.php?articleid=34 http://newdomain.com/food/food.php Code (markup): and with this 301 I got this : www. newdomain.com/food/food.php?articleid=34.. I want to redirect to www. newdomain.com/food/food.php. How to do this ?
use this link for more information about your questions. http://www.sitepoint.com/forums/showthread.php?t=426953 Regards, Mustafa
very simple: use this as old url www. olddomain.com/food/ and this as new one www. newdomain.com/food/
You mean like this ? redirect 301 /food/food.php?articleid=34 http://newdomain.com/food/food.php? Code (markup): Then I must do mod_rewrite, am I right ?