php - Need Help on .htaccess code to redirect category URLs into informative -


may me on following redirection?

current link of main category -

www.sitename.com/categories/main-category.html 

current link of sub category -

www.sitename.com/categories/sub-category.html 

links static not looking – possible make them more informative in manner –

www.sitename.com/main-category.html www.sitename.com/main-category/sub-category.html 

i using htaccess code, -

rewriterule ^(.+)-cusid-(.+).html           index\.php\?m=$1&id=$2   [qsa,l] rewriterule ^search-(.+)-(.+)-(.+).html     index\.php\?m=$2&s=$3&key=$1  [qsa,l] rewriterule ^(.+)-(.+)-(.+).html            index\.php\?m=$1&s=$2&id=$3   [qsa,l] rewriterule ^(.+)-(.+).html                 index\.php\?m=$1&s=$2   [qsa,l] rewriterule ^(.+)-(.+).html                 index\.php\?m=$1&id=$2  [qsa,l] rewriterule ^(\w+).html$                    index\.php\?m=$1    [qsa,l]    rewriterule ^_(.+)-(.+)-(.+)/(.+)           index\.php\?m=$1&s=$2&id=$3$4   [qsa,l]  rewriterule ^_(.+)-(.+)-(.+)/               index\.php\?m=$1&s=$2&id=$3 [qsa,l]  rewriterule ^_(.+)-(.+)/(.+)                index\.php\?m=$1&s=$2$3   [qsa,l] rewriterule ^_(.+)-(.+)/                    index\.php\?m=$1&s=$2   [qsa,l] rewriterule ^_(.+)/(.+)                     index\.php\?m=$1&$2   [qsa,l] rewriterule ^_(.+)/                         index\.php\?m=$1    [qsa,l] 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -