help me with SEO Friendly

Topics: Developer Forum
Mar 9, 2010 at 5:33 AM

Ex : i have a domain http://khuphodem.com/home/

1. Input : http://khuphodem.com/home/NewsCate-1.kpd  , i want ouput http://khuphodem.com/home/default.asp?Para=NewsCate&ID=1

File IIRF.ini in root directory C:\web\khuphodem.com\www\ <--- It's ok or input folder C:\web\khuphodem.com\www\home\

How do i insert code for IIRF.ini ?

Old my code in IIRF.ini but not running
RewriteRule /home/NewsCate-(.+).kpd /home/default.asp\?BiGstreet=NewsCate&BiG_NewsCateID=$1 [I,O]

 

Coordinator
Mar 10, 2010 at 2:23 AM

try this:

RewriteRule /home/NewsCate-([0-9]+).kpd 
       /home/default.asp?Para=NewsCate&ID=$1  [I]

The above should be all-on-one-line.

When in doubt, check the log file for useful message about your ini file.

I'm not sure if you want NewsCate to be variable or not.  If you do, then...

RewriteRule /home/([a-zA-z]+)-([0-9]+).kpd 
       /home/default.asp?Para=$1&ID=$2  [I]

 

Mar 10, 2010 at 6:52 AM
RewriteRule /home/([a-zA-z]+)-([0-9]+).kpd 
/home/default.asp?Para=$1&ID=$2 [I]

<--- Not running, but i can used

RewriteRule /home/([0-9]+).kpd 
/home/default.asp?Para=NewsCate&ID=$1 [I]

or your code:
RewriteRule /home/NewsCate-([0-9]+).kpd
     /home/default.asp?Para=NewsCate&ID=$1  [I]


Coordinator
Mar 10, 2010 at 11:36 AM

Show the complete ini file. 

Also, this is going to work better if you communicate to me in complete sentences.  With what you have written, I am guessing about what you mean.