SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy 500 internal server error + htaccess

    Hi, I'm running 2 same website in different server.

    I'm using htaccess file to control the url rewrite.

    However, one of the website showing 500 internal server error when I enable the .htaccess file.

    Another website which has the same files & .htaccess running just nice.

    Thus I suspect I need to do some configuration to the server.

    Do you have any idea how come this problem happens and where should I debug the problem?

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Have you checked to see if the mod_rewrite module is enabled?
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AnthonySterling View Post
    Have you checked to see if the mod_rewrite module is enabled?
    gosh!!! I missed out so important part!

    Thanks a lot AnthonySterling...


    I followed the steps below:
    Here is a way to check if mod_rewrite is enabled on your server...

    * Create a file called .htaccess (note there is nothing before the file extension).
    * Put only these two lines in your .htaccess file.

    Options +FollowSymLinks
    Redirect /google.html http://www.google.com

    * Upload this file to your site root on your server.
    * Now point your browser to: http://www.example.com/google.html (replacing example.com with the domain name of your own website).
    Seems is not enable.

    Is there anything I can do over my side besides asking my webhost to configure it??

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,688
    Mentioned
    100 Post(s)
    Tagged
    4 Thread(s)
    How to check and enable mod_rewrite module in apache
    http://roshanbh.com.np/2008/04/check...te-apache.html
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pmw57 View Post
    How to check and enable mod_rewrite module in apache
    http://roshanbh.com.np/2008/04/check...te-apache.html
    pmw57,

    Thanks so much!

  6. #6
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea, I'm asking my webhost to enable it.

    Thanks everyone for the help


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
  •