Forum Moderators: phranque
RewriteRule ^oldsubdirectory/oldfilename$ http://example.com/newsubdirectory/newfilename [R=301,L]
Redirect 301
The RewriteRule by itself gave me a 404.
The Short version using just one specific file and adding the Rewrite Engine on at the top before the Drupal rules results in Internal Server Error.
You may need to say "RewriteEngine on" twice
Who said it was top-down?
RewriteMap directives of the type prg are not started during server initialization if they're defined in a context that does not have RewriteEngine set to on
Who said it was top-down?
?! It's strongly implied by the docs,
they offer "RewriteEngine off" as an alternative to commenting-out lots and lots
Use this directive to disable rules in a particular context, rather than commenting out all the RewriteRule directives.
Yes, if I access the newfile url directly in a browser, it does display properly.OK, good, now what happens if you request the oldfile URL? Earlier you said you got a 404. The part that wasn't clear is whether you got the 404 at the old URL or the new one. It sounds like old URL, meaning the redirect didn't take place and we need to figure out why.