Results 1 to 3 of 3

Thread: Invalid command 'RewriteEngine'

  1. #1
    smokeyjoe is offline Unknown Net Builder
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Invalid command 'RewriteEngine'

    hi
    the script will not run on my site, i keep getting http internal server error and the page changes to http://www.solholistic.com/lang/es%3...cho%20$_SERVER[
    i installed the link on www.solholistic.com/reiki1.html to see if it would work first.curl is enabled and safe mode is off.
    the link i used is <a href="http://www.solholistic.com/lang/es<?php echo $_SERVER["REQUEST_URI"] ?>"><img src="graphics/es.gif" alt="Spanish"></a>
    i include the error log files below, any help appreciated.
    [Thu Dec 18 10:34:35 2008] [alert] [client 84.64.3.234] /domains/s/o/solholistic.com/public_html/lang/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Thu Dec 18 10:34:25 2008] [alert] [client 84.64.3.234] /domains/s/o/solholistic.com/public_html/lang/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Thu Dec 18 10:34:41 2008] [alert] [client 84.64.3.234] /domains/s/o/solholistic.com/public_html/lang/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,327 Times in 1,258 Posts
    The visible presence of '">' on http://www.solholistic.com/reiki1.html tells me that the PHP code is not being executed by your web server.

    There are many ways to configure your web server to execute PHP code stored in .html files. The one I use is to add this line to my site's main .htaccess file:

    Code:
    AddType application/x-httpd-php .html
    You'll know this is working when the '">' disappears.

    Quote Originally Posted by smokeyjoe View Post
    /domains/s/o/solholistic.com/public_html/lang/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    This is a different problem. This most likely means that your web server doesn't have mod_rewrite enabled.

    Are you using Apache 1.3 or Apache 2.x?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    smokeyjoe is offline Unknown Net Builder
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the hosting company have confirmed that the mod_rewrite is not enabled on my account.
    thanks for the quick response

Similar Threads

  1. Invalid clicks on my adsense! need help!
    By shoeb000 in forum AdSense
    Replies: 12
    Last Post: 5 February, 2011, 18:30 PM
  2. command line or cron job ?
    By SonnyCooL in forum Managing
    Replies: 3
    Last Post: 26 October, 2010, 17:13 PM
  3. COMMAND & CONQUER 3 TIBERIUM WARS
    By chatterbox in forum Gaming
    Replies: 5
    Last Post: 7 January, 2010, 07:17 AM
  4. Unix command for making files
    By Mr.Bill in forum Managing
    Replies: 2
    Last Post: 31 July, 2009, 11:37 AM
  5. Replies: 0
    Last Post: 20 June, 2009, 00:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •