I have a question about htaccess rule. I need to execute a rule only if url is different from url that I set...
For example I have this code in my htcess:
RewriteRule ^/?([^/]+)/160-chloe-duraate-lo-shopping/detail/(.*) https://www.allevamentochihuahua.com/foto-album-nostri-chihuahua/160-chloe-duraate-lo-shopping/detail/$2 [R=301,NC,L]
RewriteRule ^/?([^/]+)/?([^/]+)/160-chloe-duraate-lo-shopping/detail/(.*) https://www.allevamentochihuahua.com/foto-album-nostri-chihuahua/160-chloe-duraate-lo-shopping/detail/$3 [R=301,NC,L]
I want that these rules run only if url visiter is different from foto-album-nostri-chihuahua/160-chloe-duraate-lo-shopping/detail/?([^/]+)
Aucun commentaire:
Enregistrer un commentaire