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

#71535
john010117
Member

Try any of the following (make sure to do a hard refresh when testing each of these – shift + F5):

Code:
# BEGIN DIRECTORY REDIRECTION
RewriteEngine on
RewriteBase /about/
RedirectMatch 301 (.*).shtml http://trinityportland.org/our-school/about$1
# END DIRECTORY REDIRECTION
Code:
# BEGIN DIRECTORY REDIRECTION
RewriteEngine on
RewriteBase /about/
RedirectMatch 301 /(.*).shtml http://trinityportland.org/our-school/about/$1
# END DIRECTORY REDIRECTION
Code:
# BEGIN DIRECTORY REDIRECTION
RewriteEngine on
RewriteBase /about/
RedirectMatch 301 ^(.*).shtml http://trinityportland.org/our-school/about$1
# END DIRECTORY REDIRECTION

If none of those work, try removing your cms’s htaccess file in your site’s root (at http://trinityportland.org/.htaccess) and see if it at least redirects correctly (ignore the 404).