Results 1 to 5 of 5

Thread: .htaccess and WAMP

  1. #1
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default .htaccess and WAMP

    So I set up WAMP5, and everything is working fine.
    My path is c:\wamp\www\ and that's where I put my files. When I put my .htaccess file in the (and yes, it is .htaccess, not .htaccess.txt) I get a 500 error from WAMP saying:
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    How can I put .htaccess on my WAMP server?
    - Mike

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Okay... I found out the problem. It wasn't the server, but the .htaccess file itself.
    Code:
    RewriteEngine On
    Options +FollowSymlinks
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} mburt.mb.funpic.org
    RewriteCond %{REQUEST_URI} !testing/
    RewriteRule ^(.*)$ subfolder/$1 [L]
    As you can see, I'm writing it so it will redirect:
    mburt.funpic.org/testing
    to testing.mburt.funpic.org/
    For some reason the Apache log says the RewriteEngine isn't a command.
    - Mike

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Probably you don't have mod_rewrite installed/loaded.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Thanks Twey, exactly right. I forgot to check it off on the Apache menu.
    - Mike

  5. #5
    Join Date
    Mar 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i enable the rewrite module and now any page on the site says unable to connect
    i disable it again and still give me the same message !!!
    any idea?

    thanks in advance.

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
  •