0

I am trying to force the www. in the beginning of my domain... I am aware of using the method mentioned on the first answer here to do this in the httpd.conf file, but this causes Apache to say that it doesn't understand this command. Is there something I am doing wrong... or do I need to put the code in a certain spot? -Thanks, San

2
  • What is the error that you are getting? and what are the rewrite rules that you tried? Also please include any error logs that you see which is relevant to this.
    – nohup
    Apr 22, 2014 at 7:39
  • Error is "Syntax Error on line 2 of C:/Apache24/conf/httpd.conf: Invalid command 'ReWrite Engine", perhaps misspelled or defined by a module not included in the server configuration.", and rules are RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^ %{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    – San Bergam
    Apr 22, 2014 at 22:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.