I have to replace _ (underscore) with -(hyphen) from urls for the SEO purpose.I have hundreds of files so I can't change filenames one by one.So I wrote some .htaccess code to do that.
This is the code I am using.
RewriteRule ^([^_]*)_(.*)$ /$1-$2 [R=301,L]
It successfully changing my urls from underscore to hyphen.
Now I have one subdirectory named "administrator" and I dont want this directory urls to replace from underscore to hyphen.
So I want to skip urls of this directory to skip from .htaccess code.
Please help me how to skip this.
Thanks!