Pedro Posada | .htaccess
  • Posted on April 3, 2009 - 2:20pm

    I was getting the anoying Error 500 - Internal server error on my 1and1 home shared hosting again.

    I tried all the fixes on this site but still not getting passed the error page.

    Then I realized that the front page of my site was working fine but the resto of the pages weren't. So I figured that there might be a problem with the clean URLs. I checked my .htaccess file and there it was.

    # RewriteBase /
    

    I uncommented that line.

    RewriteBase /
    

    This solved the problem.

     

  • Posted on March 22, 2009 - 7:06pm

    I am developing drupal sites locally on my MacBook using MAMP.

    I was getting a lot of memory limit errors.

    I modified the php.ini file and also the settings.php fiel in drupal. None of them solved my problems.

    I inserted this line in my .htaccess file inside the drupal folder:

    php_value memory_limit  "100M"
    

    That line goes right after

    # PHP 5, Apache 1 and 2.
    <IfModule mod_php5.c>
    

    This solved my problem.

     

  • Posted on May 12, 2008 - 2:18pm

    Copy and paste the following line at the beginning of your .htaccess file:

    ##
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    ##

    go to http://drupal.org/node/232773 for the complete drupal forum post.

    ADDITIONAL IMPORTANT INFORMATION

  • Posted on April 22, 2008 - 12:02pm
    .htaccess code snippet to have any url to redirect to another url. You would insert this in your .htaccess file. This is very useful when you are migrating a static html site into a Drupal site.