I have changed my photo gallery to a subdomain of my web hosting account.
Since google is still referencing the old links to my pictures, I want to do a 301 redirect with htaccess. In the 301 redirect I think the best way is to search incoming URL for specific string in old link and if found then just append photos to link as subdomain.
eg
incoming URL - http://www.MYDOMAIN.com/photography-...y/12345_crABCD
check incoming URL's for string "photography-gallery" if found then 301 rewrite URL by appending subdomain photos to URL
photos.MYDOMAIN.com/photography-gallery/12345_crABCD
I also tried this redirectin htaccess to just go to my domain if string found and it did not do anything
redirect 301 /photography-gallery/ http://www.MYDOMAIN.com/
Can someone help with writing the expression for this htaccess redirect or rewrite? Thanks