mod_rewrite: ok with Dathorn or no?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimtron
    Junior Member
    • May 2004
    • 12

    #1

    mod_rewrite: ok with Dathorn or no?

    I've found a few threads here regarding mod_rewrites, and I'm confused. One post quoted Andrew as saying they may not work here; others beg to differ. I tried adding this to an .htaccess file and I'm getting a 500 error:

    Options -Indexes
    RewriteEngine on
    RewriteRule ^(browse|about)$ index.php?x=$1&pagenum=1
    RewriteRule ^browse/([0-9]+)$ index.php?x=browse&category=&pagenum=$1
    RewriteRule ^browse/category/([0-9]+)/([0-9]+)$ index.php?x=browse&category=$1&pagenum=$2
    RewriteRule ^browse/category/([0-9]+)$ index.php?x=browse&category=$1&pagenum=1
    RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
    RewriteRule ^comment/submit$ index.php?x=save_comment
    RewriteRule ^photo/([0-9]+)$ index.php?showimage=$1
    RewriteRule ^photo/([0-9]+)/rating/([1-5])$ index.php?showimage=$1&rating=$2
    RewriteRule ^photo/file/(.+)$ /images/$1
    RewriteRule ^thumbnails/latest$ index.php?showthumb=latest&thumbtag=image
    RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1
    RewriteRule ^browse/archive/(.*)/([0-9]+)$ index.php?x=browse&archivedate=$1&pagenum=$2
    RewriteRule ^browse/archive/(.*)$ index.php?x=browse&archivedate=$1&pagenum=1


    Anyone have any thoughts on this? By the way, this if for a photoblog running Pixelpost (http://www.picturedujour.com).

    Here's the error log:
    [Sat Oct 15 17:45:13 2005] [error] [client 68.20.19.203] File does not exist: /home/pictured/public_html/404.shtml
    [Sat Oct 15 17:45:13 2005] [error] [client 68.20.19.203] File does not exist: /home/pictured/public_html/favicon.ico
    [Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
    [Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
    [Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
    [Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
    [Sat Oct 15 17:26:48 2005] [error] [client 71.112.94.185] File does not exist: /home/pictured/public_html/404.shtml
    [Sat Oct 15 17:26:48 2005] [error] [client 71.112.94.185] File does not exist: /home/pictured/public_html/favicon.ico
  • Buddha
    Senior Member
    • Mar 2004
    • 825

    #2
    You did uploaded it as text, right? Though FollowSymlinks is usually on in httpd.conf. Try this Options instead ...

    Code:
    Options +FollowSymlinks -Indexes
    "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

    Comment

    • jimtron
      Junior Member
      • May 2004
      • 12

      #3
      Thanks for the suggestion; I tried it but still no dice. Yes, I uploaded it as ascii text. The .htaccess file is in the root of my public_html folder, which is also the root Pixelpost folder. I also tried chmodding to 755, but it shouldn't need that many permissions, right?

      Comment

      • Buddha
        Senior Member
        • Mar 2004
        • 825

        #4
        Drop the "Options -Indexes" line and see if that works?

        Is it in Unix file format? I'm thinking it's missing the end of line and thinks "RewriteEngine on" is on the same line as "Options -Indexes"?
        "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

        Comment

        • sdjl
          Senior Member
          • Mar 2004
          • 502

          #5
          Just to add another note, have you checked your error log under cPanel?
          It normally gives you a fair bit of info when you get an error occuring on your .htaccess files

          David
          -----
          Do you fear the obsolescence of the metanarrative apparatus of legitimation?

          Comment

          • Buddha
            Senior Member
            • Mar 2004
            • 825

            #6
            Code:
            [Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
            Error doesn't seem to have anything to do with mod_rewrite but "Options" instead.

            This produces the same error:
            Code:
            Options -Indexes RewriteEngine on
            "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

            Comment

            • jimtron
              Junior Member
              • May 2004
              • 12

              #7
              Thanks, removing the option line did the trick--or at least I'm not getting a server error anymore. I haven't tested it beyond that yet, but I'll be checking back.

              Comment

              • sdjl
                Senior Member
                • Mar 2004
                • 502

                #8
                Oops, would help if i read the whole thread before posting

                David
                -----
                Do you fear the obsolescence of the metanarrative apparatus of legitimation?

                Comment

                Working...