Home › Forums › Back End › [Solved] .htaccess mod_rewrite › Re: [Solved] .htaccess mod_rewrite
February 26, 2010 at 9:58 am
#71681
Member
Bingo.
@john, @davidsgone… a debt of gratitude and enormous thanks here.
My one final question is if I’m correct in thinking that the below will work to get to the other directories to redirect appropriately as we’ve accomplished here, or if I have to make a new RewriteBase, or even turn RewriteEngine on again for the others:
Code:
# BEGIN DIRECTORY REDIRECTION
RewriteEngine on
RewriteBase /
RedirectMatch 301 ^/about/(.*).shtml http://trinityportland.org/our-school/about/$1.shtml
RedirectMatch 301 ^/academics/(.*).shtml http://trinityportland.org/our-school/academics/$1.shtml
RedirectMatch 301 ^/contact/(.*).shtml http://trinityportland.org/our-school/contact/$1.shtml
# END DIRECTORY REDIRECTION
RewriteEngine on
RewriteBase /
RedirectMatch 301 ^/about/(.*).shtml http://trinityportland.org/our-school/about/$1.shtml
RedirectMatch 301 ^/academics/(.*).shtml http://trinityportland.org/our-school/academics/$1.shtml
RedirectMatch 301 ^/contact/(.*).shtml http://trinityportland.org/our-school/contact/$1.shtml
# END DIRECTORY REDIRECTION
a hundred thanks again gentlemen.