Yesterday, I tried to 301 redirect a bunch of URLs that had no extensions, (such as http://www.mysite.com/colors/blue) to a new location on a new domain. They all wound up returning 500 errors. This is an example of how I tried the 301. I can't imagine why this doesn't work for URLS without a trailing ".php" or ".html": RewriteEngine ON Redirect 301 /colors/blue http://www.mynewsite.com/blue Code (markup): any ideas?
i tend to not use the rewrite engine. i prefer using php in combination with a ErrorDocument 404 /404.php in .htaccess then the 404.php send a "200 ok" status and has some logics what to do with which urls... work fine and saves me the hassle with nonworking rewrite rules. if you need such thing set up, PM me.