.htaccess - PHP - URL rewrite not working in htacess. -
I have created dynamic product such as URL like mini shopping cart
I saw this link in the browser
http: //localhost/sd/view.php?prode= PD1001 I want to rewrite the URL and want to manage SEO
& lt; Ifmodule mod_rewrite.c & gt; Option + Coordinate options + reciprocal link rewriting engine rewrite / rewriteconconction% {QUERY_STRING} hack rewrite% {HTTP_COOKIE}! Rewrite Rule - [F] See Recharge ^ ^ php? Procode = ([a-zA-Z0-9] +) $ view / $ 1 / $ 2 & lt; / IfModule & gt; I need something like this
http: // localhost / sd / view / sunglasses / http: // localhost / sd / view / iphone6 / Http: // localhost / sd / view / androidphonefx1 /
Change your href:
& lt; a href = "/ sd / view / product_code. '/'. $ obj-> product_name ;; & gt; & Gt; View & lt; / A & gt; Then use these rules in your `/sd/.htaccess:
& lt; ifModule mod_rewrite.c & gt; Option + Sequential Options + Follow-up Link - Multimedia Review Engine on Reversebase / SD / Revoked% {QUERY_STRING} Hack Revoked% {HTTP_COOKIE}! Rewrite Rule - [F] Revert Rule ^ / ([\ w -] +) view.php? Procode = $ 1 [L, QSA, NC] & lt; / IfModule & gt;
Comments
Post a Comment