php - htaccess rewrite url with parameters not showing images -


i trying rewrite urls using htaccess.

i want similar url, www.mydomain.com/region/category/product/

it go page, www.mydomain.com/index.php?reg=region&cat=category&prod=product

i using below code in htaccess,

rewriterule ^([^/]+)/([^/]+)/([^/]+)/?$ index.php?reg=$1&cat=$2&prod=$3 [l] 

though able access parameters in index.php, browsers unable load images, css etc, htaccess rewriting urls them.

please me solve issue.

thanks in advance!

you can use rewritecond before rewriterule statement

rewritecond %{request_uri} !\.(jpg|png|css)$ [nc] 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -