www.webdeveloper.com
Results 1 to 8 of 8

Thread: .htaccess error

  1. #1
    Join Date
    Aug 2004
    Posts
    244

    .htaccess error

    hi,
    i have a .htaccess file. When I include this line it creates an internal server error. I know that the file works as I have redirects for 404 errors etc and they work.
    PHP Code:
    # Causing error:
    RewriteEngine on 

    does anyone know why this is happening?

  2. #2
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Ensure that the httpd.conf file allows the mod_rewrite module to be run, and that the mod_rewrite module is installed.

  3. #3
    Join Date
    Aug 2004
    Posts
    244
    hi,
    i looked in that file and found this line:
    Code:
    #LoadModule rewrite_module modules/mod_rewrite.so
    As it is commented out does this mean that the 'mod_rewrite is disabled? if so how do enable it?
    do I just uncomment it?

    thanks

  4. #4
    Join Date
    Aug 2004
    Posts
    244
    i just looked to see if the file exists and it does (local server), if that helps!

  5. #5
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Yes. Uncomment that line and restart your webserver; it should work after that.

  6. #6
    Join Date
    Aug 2004
    Posts
    244
    thank-you!

  7. #7
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Welcome.

  8. #8
    Join Date
    Jan 2004
    Posts
    2,422
    If that doesn't work (it didn't for me...) Search for something like '<Directory "C:/Program Files/Apache Group/Apache2/htdocs">' and then scroll down to see ' AllowOverride None', and change that to ' AllowOverride All'.

    *shrug*

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles