1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Problem With RewriteEngine

Discussion in 'Apache' started by programmer, Aug 27, 2005.

  1. #1
    i have put a cms in my root directory which has "RewriteEngine On" in its .htaccess file. the problem is that when i try to run it Apache gives internal server error. in apache's log the following has been written

    "Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration"

    what i have to do - i didn't know much about apache so brief in detail .

    I am using Apache 2 on Windows XP with php 4.4.0 installed
     
    programmer, Aug 27, 2005 IP
  2. trevize

    trevize Active Member

    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I'm not sure about apache 2 on windows, but on apache on linux, I have these lines in the httpd.conf:

    LoadModule rewrite_module libexec/mod_rewrite.so

    AddModule mod_rewrite.c

    Do you have similar lines in your conf?
     
    trevize, Aug 27, 2005 IP
  3. programmer

    programmer Guest

    Messages:
    444
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no i didn't find any line like that. i try to add them manually but apache crashs. the problem still exist
     
    programmer, Aug 27, 2005 IP
  4. programmer

    programmer Guest

    Messages:
    444
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    only the following line was needed in httpd.config file

     LoadModule rewrite_module libexec/mod_rewrite.so 
    Code (markup):
    Thanks problem is solved. No More Post Is Required
     
    programmer, Aug 29, 2005 IP