i'm new regular expression , need redirecting on .htacess urls
some examples are:
/lentes-de-contato/9/lentes-de-contato-biofinity-coopervision /lentes-de-contato/9/lentes-de-contato-biofinity-teste /lentes-de-contato/9/lentes-de-contato-biofinity /lentes-de-contato/9/biofinity the regex needs match word biofinity don't match word coopervision. tried several ways build expression looks this: "biofinity" , !"coopervision" nothing seems work. till have:
/lentes-de-contato/([0-9]+)/(.*biofinity.*) could me?
maybe, so. rewrterule achieved condition
rewritecond %{request_uri} biofinity rewritecond %{request_uri} !coopervision rewriterule
Comments
Post a Comment