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

#71630
copperSmith
Member

Hey John, this one get’s me:

chrome’s error is:
The webpage at http://trinityportland.org/our-school/a … c%5c.shtml has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

ff’s error is:
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

We’re so close…

Another question for you though… once we get it for the /about/ directory, how would we go about implementing for the rest of them?

MY guess – had this last one worked out:

Code:
# BEGIN DIRECTORY REDIRECTION
RewriteEngine on
RewriteBase /
RedirectMatch 301 /about/(.*).shtml http://trinityportland.org/our-school/about/$1.shtml
RedirectMatch 301 /contact/(.*).shtml http://trinityportland.org/our-school/contact/$1.shtml
RedirectMatch 301 /academics/(.*).shtml http://trinityportland.org/our-school/academics/$1.shtml
… so on and so forth …
# END DIRECTORY REDIRECTION