regex - Weird apache htaccess behavior, not working as its supposed -


My Apache Forwarding works with a weird twist I'm not sure why this is happening ...

  301 / old / new redirect   

/old/some_file2.html code> forward /new/some_file2.html for / old / some_folder21 / for me / new / some_folder21

"post-text" itemprop = "

text">

You can use RedirectMatch for its regex capabilities Must do:

  RedirectMatch 301 ^ / old / new   

or mod_rewrite :

  remit rules ^ /? old (/.*)? / / new? [L, NC, R = 301]    

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -