mod_rewrite help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tspilman
    Junior Member
    • May 2004
    • 21

    #1

    mod_rewrite help!

    So i have this .htaccess file...

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.*/[^\./]*[^/])$ $1/
    RewriteRule ^(.*)$ wakka.php?wakka=$1 [QSA,L]
    </IfModule>
    Options All

    ... and when i access the folder i get the following in the error log...

    File does not exist: /usr/local/apache/htdocs/home/tspilman/public_html/wiki/wakka.php

    The wakka.php does exist and works, but i'm a total n00b at this mod rewrite stuff so i'm not sure what the problem is. Maybe i need to do something special on this virtual server?
  • Andy
    Senior Member
    • Mar 2004
    • 257

    #2
    Is this on a dathorn server?
    Doesn't look like it

    /usr/local/apache/htdocs/home/tspilman/public_html/
    Andy

    Comment

    • tspilman
      Junior Member
      • May 2004
      • 21

      #3
      Ummm... yea... the server is cpanel36.gzo.com. I'm still using the temp URL as i haven't switched over DNS. Could that have something to do with it?

      Comment

      • Andy
        Senior Member
        • Mar 2004
        • 257

        #4
        The reason I asked because the path you stated
        /usr/local/apache/htdocs/home/tspilman/public_html/
        does not look like a cPanel path IE /home/username/public_html/

        Regardless. As to your error message
        File does not exist: /usr/local/apache/htdocs/home/tspilman/public_html/wiki/wakka.php
        If its on a dathorn server, try changing the path to something like
        /home/tspilman/public_html/wiki/
        Andy

        Comment

        • tspilman
          Junior Member
          • May 2004
          • 21

          #5
          If this isn't something that's being caused by the mod_rewrite then I guess it has to be some internal assumption this wiki script makes. But that seems strange as the script works just fine without mod_rewrite stuff in the htaccess file.

          Comment

          Working...