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.

enter image description here

but when goto page clean url: /details/streamer/1

enter image description here

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -