Hi!
I recently installed a Cake PHP system which requires to redirct my root to another root folder on where the contents are
example:
RewriteEngine On
RewriteRule ^$ newroot/ [L]
RewriteRule (.*) newroot/$1 [L]
However, on the "old" root I had some files to where search engines are trying to access as well visitors which had that page bookmarked, I would like to redirect this visitors to the new URL (which don't have the same name) I don't mind to add all the pages 1 by 1 redirecting them to the new URL, however, so far I was unable to do it.
I tried with something like
redirect 301 oldpage.html http://domain.com/pages/newName
and
RewriteRule oldpage.html$ http://domain.com/pages/newName
But none of those works. I'm started to wonder if this is possible to accomplish.
TIA to everybody.