.htaccess (mod_rewrite)

Discussion in 'H-Sphere Shared Hosting' started by DeepakG, Jan 9, 2006.

  1. DeepakG

    DeepakG Perch

    Does anyone here use .htaccess file? I just recently switched from windows hosting to linux hosting just so that I can use it and get "clean urls" in Drupal (a great CMS). I am mainly trying to use .htaccess to use apache's mod_rewrite module. Long story cut short I can't figure out how to use the RewriteLog directive. Here is what I tried using, which gave me a 500 internal server error:

    PHP:
    # .htaccess file
    # Various rewrite rules.
    <IfModule mod_rewrite.c>
      
    RewriteEngine on
     RewriteLog 
    "/hsphere/local/home/<my_username>/url_rewrite.log"
      
    RewriteLogLevel 1

    </IfModule>
    Any idea on what I'm doing wrong? I even tried creating the url_rewrite.log file myself and giving it 666 permission but it I was stil getting a 500 internal server error.

    Thanks,
    Deepak

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services