|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi all Buddies out ther on NEt
Can u plz help this amateur mod_rewrite programmer Im hving a sipage like www.abc.com/pl.asp?cp=1&id=9 and i want this page to appear as www.abc.com/cp1id9 Can u guys plz help me in writing the RewriteCond and RewiteRule command and plz tell me how to change the ASP code of my original file which is like "<a href=pl.asp?cp=" & ctr & "&id=" & id & ">" & ctr & "</a>" Plz tell me what to write here in place of href |
|
#2
|
|||
|
|||
|
That wont work unless www.abc.com/cp1id9 is a valid URL. mod_rewrite is used to rewrite URL's for proxy pass thrus, redirecteion, etc.
|
|
#3
|
|||
|
|||
|
RewriteEngine On
RewriteRule ^cp([0-9]+)+id([0-9]+)$ pl.asp?cp=$1&id=$2 [L,NC] |
![]() |
| Viewing: SEO Chat Forums > Search Engine Strategies > Search Engine Optimization > QueryString and mod_rewrite |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|