2011-03-16, 22:57:30
I had the same problem when I made some redirects on get-simple.info pointing the old docs to the new wiki. Here is what my .htaccess file looks like. Pay attention to the placement of things here:
Code:
RewriteBase /
# redirects from old docs to new wiki links
RewriteRule ^download/requirements/?$ http://get-simple.info/wiki/installation:requirements [R=301,L]
RewriteRule ^docs/theme-codex/?$ http://get-simple.info/wiki/themes:creation [R=301,L]
RewriteRule ^docs/theme-creation/?$ http://get-simple.info/wiki/themes:creation [R=301,L]
RewriteRule ^docs/plugin-creation/?$ http://get-simple.info/wiki/plugins:creation [R=301,L]
RewriteRule ^download/languages/?$ http://get-simple.info/wiki/languages [R=301,L]
RewriteRule ^docs/permalinks/?$ http://get-simple.info/wiki/pretty_urls [R=301,L]
RewriteRule ^docs/installation/?$ http://get-simple.info/wiki/installation [R=301,L]
RewriteRule ^docs/?$ http://get-simple.info/wiki/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
rewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([^/][A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA,L]