Hello,
I have made a new site for my band using modx.
I want to redirect old pages of the site to the relevant new page using htaccess (if someone clicks on a link somewere in cyberspace or from a bookmark).
Say I have this page: domain.com/bandmembers/bm.htm
The new page is: domain.com/biography.php
How do I do it if seo friendly url’s are turned on?
# Rewrite URLs to make Search Engine Friendly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
I would have thought...:
RedirectMatch permanent ^/bandmembers/bm.htm$ http://www.domain.com/biography.php
or
redirect 301 /bandmembers/bm.htm http://www.domain.com/biography.php
...but that does not want to work for me.
Thanks in advance.