Forum Moderators: phranque
But Redirect 301 /foldername/ ht**://www.mydomain.com/newfolder/index.php for the whole folder it adds the requested page name to the end of the redirect as ...index.phpoldpage.htm and I get a 404.
I guess it is expecting a folder with same page names.
How could I do a mod_rewrite to do the same or Redirect 301 work with a bit of modification to the above?
Basically killing the folder and redirecting all the pages to the newfolder/index.php
Help!
Jim
It could probably use a bit of tweeking.
RewriteEngine On
Options +followsymlinks
RewriteBase /
# rewrite Begin
RewriteRule ^myfolder/.* htt*://www.my-domain.com/phpBB/index.php [R=301,L]
Or should I use:
RedirectMatch permanent myfolder/.* htt*://www.my-domain.com/phpbb/index.php
Getting the subfolders and files is the main issue. Is one way or the other preferred?
fyi: * in http to prevent link.