mod rewrite - mod_rewrite trailing slash with RewriteCond -


I searched through related mod_rewrite qustions but I can not do anything specific so that I will post:

This is my rule that adds trailing slash:

  rewrite% {REQUEST_URI} ^ / [^ \.] + [^ /] $ Rewrite rule ^ (. *) $ Http: / /% {HTTP_HOST} / $ 1 / [R = 301, L]  

Only I have to exclude a specific directory / mydirectoryname / And then start any thing that starts up in the following slash. Do not add. The reason for breaking some of my SGS calls

Add another rewrite:

rewrite% {REQUEST_URI}! / Mydicureoryname) /


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -