mod rewrite

Discussion in 'Apache' started by Garball, Jan 14, 2011.

  1. #1
    Hi,

    My new website is loosing google ranking because I forgot about 301 redirects of old pages. I need help with the following in coding .htaccess:

    page request: /gallery/v/everything_in_here redirect to /gallery
    page request: /gallery3/everything_in_here_including_subdirectories to /gallery

    The original request are for specifi images that don't exist however I want the redirect to be a directory! Is this possible? I'm getting 404 errors because /gallery/v/stuff.img and /gallery3/stuff/image.img doesn't exist and I need it to be re-directed to /gallery/ instead.

    Thanks for any help.
    (PS: I've spent days reading manuals, searching etc... can't seem to make this work)
     
    Garball, Jan 14, 2011 IP