1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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:

    SEMrush
     
    RyanDoubleyou, Jun 8, 2008 IP
    SEMrush