php - htaccess clean url with multiple parameters not working correctly? -
the htaccess clean url multiple parameters not working correctly.
when goto page: /template?shopname=streamer&id=1
full url, page/images/includes work properly.
but when goto page clean url: /details/streamer/1
it doesn't load content, images missing.
rewriteengine on rewriterule ^details/([^/]+)/([0-9]+)$ template?shopname=$1&id=$2 [l]
and code @ top of template file:
<?php include_once "functions.php"; $shopname = $_get['shopname']; $shop = template($shopname); $title = $shop['title']." | dreamrj"; $descr = $shop['descr']; $id = $_get['id']; include "header.php"; ?>
thanks
Comments
Post a Comment