SubDirectory in RewriteRule

Discussion in 'Apache' started by 0ne, Aug 26, 2009.

  1. #1
    Hey,

    For example I have index.php that includes:
    <? include('info/'.$t.'.php'); ?>

    I write down address www.domain.com/index.php?t=blogs&b=read
    Everything works fine. Images are loaded from www.domain.com/img/... (as expected)

    But when I use a RewriteRule:
    RewriteRule ^blogs/read$ index.php?t=blogs&b=read [NC,L]
    The server thinks that blogs/read is a sub-directory, so every image on the webpage is loading from www.domain.com/blogs/img...

    So images, style.css and other content doesn't displayed on the webpage.

    How this can be fixed?
     
    0ne, Aug 26, 2009 IP