Home › Forums › Back End › [Solved] .htaccess mod_rewrite › Re: [Solved] .htaccess mod_rewrite
February 24, 2010 at 11:27 pm
#71535
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
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
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
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).