Redirect .html but not .html?with=options

Posted by Leonard on Stack Overflow See other posts from Stack Overflow or by Leonard
Published on 2010-04-06T15:23:00Z Indexed on 2010/04/06 15:43 UTC
Read the original article Hit count: 262

Filed under:

I'm currently using an .htaccess to get round a problem with a CMS, nothing major and an htaccess fix is tidy enough.

I'm currently using the format...

redirect 301 /pictures.html http://www.domain.com/gallery.html

The problem though this causes is that the CMS uses pictures.html?vars=here to select galleries and so the redirect breaks this part of it. Is there any way I can redirect pictures.html but not when it has variables attached?

© Stack Overflow or respective owner

Related posts about .htaccess