Need help with my mod rewrite, and including

Discussion in 'Apache' started by RyanDoubleyou, Jun 8, 2008.

  1. #1
    Hello, I am the owner of http://tackypenguin.com.
    I have a little problem with my mod rewrite. My .htaccess file says that site.com/user rewrites it to /index.php?page=user. It does that, but then at the bottom of the page, it says:

    Warning:  main(/home/content/r/y/a/ryan/html/user.php): failed to open stream: No such file or directory in /home/content/r/y/a/ryan/html/index.php on line 122
    
    Warning:  main(/home/content/r/y/a/ryan/html/user.php): failed to open stream: No such file or directory in /home/content/r/y/a/ryan/html/index.php on line 122
    
    Warning: main(): Failed opening '/home/content/r/y/a/ryan/html/user.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/r/y/a/ryan/html/index.php on line 122
    Code (markup):
    How do I take those errors off?

    On my line 122, it says
    include("/home/content/r/y/a/ryan/html/$page.php");
    
    PHP:
     
    RyanDoubleyou, Jun 8, 2008 IP