regex - rewrite get parameters in .htaccess -
here website : http://www.example.com , want rewrite url in .htaccess here url : http://www.example.com/sub_portfolio.php?act=sub_cat , want ..
/sub_portfolio/sub_cat
i tried many rewrite condition not worked , check many post in our website stack overflow. url rewrite conditions
give suggetion...
you can rewrite url using following code.
rewriteengine on rewriterule ^sub_portfolio/([a-za-z0-9-]+)/?$ sub_cat.php?act=$1 [nc,l] make sure place code in .htaccess file should located in same folder
hope helps
Comments
Post a Comment