- 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
Thanks.
EDIT:
Found out that you cannot use RewriteMap nor RewriteLog in the .htaccess context.
I guess that solves that 500 error.