user does not have permission to view this file mod_rewrite issue

Discussion in 'Apache' started by alibak, Oct 3, 2008.

  1. #1
    Hi, I needed help as to how to get rid of %20 in between words in the URL using mod_rewrite... got no replies unfortunately...

    so I looked around in the web and I found this:

    RewriteRule ([^\ ]+)\ (.+) http://www.yourdomain.com/$1-$2 [R=301,L]

    and it indeed places hyphen between the words and removes teh %20 HOWEVER... does not let the page get loaded all the way and redirects you to the main directory and says :

    "Sorry. The user does not have permission to view this file"

    What should I do?
    could someone please get back to me and give me a suggestion? I'm not a programmer. So please simply give me the whole code in mod_rewrite to place if you could.

    Thank you.
    Ali
     
    alibak, Oct 3, 2008 IP