RewriteLog and RewriteBase

New to mod_rewrite? This is a good place to start.

RewriteLog and RewriteBase

Postby TeckniX » Wed Mar 28, 2007 10:49 am

Tried to simply add it to my .htaccess file so that it would write to a file in the current directory.

Code: Select all
Options +FollowSymLinks

RewriteEngine on
RewriteBase /mypage/
#RewriteLog "/var/www/vhosts/myuser/httpdocs/mypage/rewrite.log"

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/?$ index.php?level2=$1 [QSA,L]

The RewriteBase doesn't seem to be working correctly, as neither the images or the css are loading correctly, but the page loads no matter what.
If I comment out the RewriteLog I get a server error 500 though - even if I just write it as:
RewriteLog "rewrite.log"

Any advice?
The file is chmod 777 - tried also without creating the file, and had the path to the file be a folder chmod 777


Found out that you cannot use RewriteMap nor RewriteLog in the .htaccess context.
I guess that solves that 500 error.
Posts: 38
Joined: Tue Mar 27, 2007 12:18 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 3 guests