View Single Post
  #5  
Old 04-14-2012, 03:53 AM
LiteSpeeder LiteSpeeder is offline
Senior Member
 
Join Date: Nov 2008
Posts: 65
I put it right after 'RewriteEngine on' in httpd.conf but it says "/usr/local/apache/conf/httpd.conf:567: Directive 'RewriteLog' is not allowed in current context." when i restart lsws.

Code:
<Directory /home/xxxxxx/public_html>
Options All -Indexes
Header unset ETag
FileETag None
RewriteEngine on
RewriteLogLevel 9
RewriteCond &#37;{HTTP_HOST} !^www\.xxxxxx\.xxx
RewriteRule (.*) http://www.xxxxxx.xxx/$1 [L,R=301]
</Directory>
Reply With Quote