Mod Rewrite Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmind
    New Member
    • Feb 2008
    • 16

    Mod Rewrite Problem

    I am doing a mod rewrite on a page like the following:

    www.mysite.com/user/jsmith/

    executes the following:
    www.mysite.com/result.php?user =jsmith

    This works but the top of my page where my header is suppose to be does not display my header properly. I assume it is because it contains images that are in a folder called images. Do I need to create the htaccess file at all levels ?
    How is this handled ?
  • phpmind
    New Member
    • Feb 2008
    • 16

    #2
    Hello, I was able to get my problem resolved but one more thing:

    I have a web page that looks like


    I was able to get the mod rewrite to display


    with this
    Code:
    RewriteRule ^user/([^/]+) /?$ /page.php?user=$ 1 [L]

    I would ultimately like to display


    How can this be done using the rewrite rule ?

    Comment

    Working...