Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] .htaccess mod_rewrite Re: [Solved] .htaccess mod_rewrite

#71681
copperSmith
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

a hundred thanks again gentlemen.