URL alias causes page to not recognize relative directory links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rspark07
    New Member
    • Feb 2008
    • 6

    URL alias causes page to not recognize relative directory links

    I am using RewriteRule to Rewrite as follows:

    http://localhost/pages/user1 gets translated to http://localhost/Pages.php?user= user1

    I am able to get the URL to change, but now the Pages.php file does not process correctly because it link to other files. For example:

    require_once("x ajax/xajax_core/xajax.inc.php") ;

    It still think that the path is in the pages directory and thus all my javascripts, and CSS files are failing.
Working...