I had the following redirect for a while: RewriteRule ^oldPage/(.*)$ oldPage.php?name=$1 PHP: Now I have changed "oldPage" with newPage so the new rewriterule would be: RewriteRule ^newPage/(.*)$ newPage.php?name=$1 PHP: How do I redirect 301 all old pages to new pages? Is there a kind of wild card to do that instead of indivisually. Obviously this is not a good option: Redirect 301 oldPage/(.*)$ http://www.mydomain.com/newPage.php?name=$1 PHP: because want a user friendly url and unfortunately this isn't working: Redirect 301 oldPage/(.*) http://www.mydomain.com/newPage/(.*) PHP: