I'm having a problem with an .htaccess file and apparently mod_rewrite, hopefully someone here can offer some insight!
Basically, I'm trying to rewrite a short, pretty URL to a long, ugly URL. Here's the entire .htaccess file
# pretty url rewriting for online tutoring
#RewriteEngine on
#RewriteRule ^/onlinetutoring(/(.*))? /socol/onlinetutoring/index.php=$2 [L,QSA]
This is the .htaccess for my DocumentRoot (/home/web/public_html) directory.
The problem is this: as soon as I uncomment either line, I get 403 errors for every page on the server. Even if I only uncomment "RewriteEngine on" and not the rule, I get 403 errors everywhere.
Here's the relevant line of the ls -lhA
$ ls -lhA | grep htaccess
-rwxr-xr-x 1 root:web 162 Sep 14 11:25 .htaccess
Has anyone else encountered/solved this? If so, how?
Thanks in advance!
~james