whats wrong with this rewrite :S

Discussion in 'Apache' started by hasbehas, Mar 25, 2011.

  1. #1
    I have a folder named as "ali_veli"

    I want to use it as "ali-ve-veli" , so;
    this works
    
    RewriteRule ^ali-ve-veli/ ali_veli/ 
    
    Code (markup):
    I also want to redirect any request on old folder name and any sub file/folder requests to new folder name.


    but this does no work
    
    RewriteRule ^ali-ve-veli/ ali_veli/ 
    RedirectMatch 301 ali_veli(.*) ali-ve-veli/$1
    
    Code (markup):
    any ideas ?
     
    hasbehas, Mar 25, 2011 IP