Is this a safe way to redirect?

Discussion in 'Apache' started by skunker, Jan 8, 2008.

  1. #1
    My website uses a photo gallery script and there are over 2000 photos that each have their own individual page. All of these photos are in a directory called http://www.site.com/gallery. My site is a viral site and therefore I have thousands of incoming links to each of my individual photos.

    Since my new site no longer carries those filenames, whats the best way for me to safely redirect new visitors back to my new homepage if they click an old link (such as those previously listed in Google, Yahoo, forums, etc).

    I used url rewrite on my new site so the new directories are not the same as the old. A friend suggested I use this:

    RedirectMatch /gallery/* http://www.SITE.com/

    Does this look SAFE or can I expect some kind of penalty?
     
    skunker, Jan 8, 2008 IP