Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-14 Thread Martijn
On Nov 14, 2007 5:03 PM, Ki Song <[EMAIL PROTECTED]> wrote: > > Try this instead: > > > > RewriteCond %{QUERY_STRING} ^([^,]*) [NC] > > > > If it still does not work, bump the RewriteLogLevel to 9 and look for > > answers > > in the log file. > > I tried that code and it didn't work. Did you tu

Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-14 Thread Ki Song
> Try this instead: > > RewriteCond %{QUERY_STRING} ^([^,]*) [NC] > > If it still does not work, bump the RewriteLogLevel to 9 and look for answers > in the log file. I tried that code and it didn't work. I saw that there may be some typos, so I tried the following: RewriteCond %{QUERY_STRING

RE: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-13 Thread Axel-Stephane SMORGRAV
Objet : Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page >> For some reason, the productSKU in the old url was frequently >> followed by a ',' (comma). So, for example, >> http://store.knifecenter.com/pgi-Product >> Spec?productSKU, would be a valid url i

Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-13 Thread Ki Song
>> For some reason, the productSKU in the old url was frequently followed by a >> ',' (comma). So, for example, http://store.knifecenter.com/pgi-Product >> Spec?productSKU, would be a valid url in the old system. >> >> Is there a way to "drop" the trailing ',' in the old url? > > Again, untested,

Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-13 Thread Martijn
On Nov 13, 2007 7:43 PM, Ki Song <[EMAIL PROTECTED]> wrote: > For some reason, the productSKU in the old url was frequently followed by a > ',' (comma). So, for example, http://store.knifecenter.com/pgi-Product > Spec?productSKU, would be a valid url in the old system. > > Is there a way to "drop"

Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-13 Thread Ki Song
>> How would I write a second rule for: >> OLD URL: http://store.knifecenter.com/pgi-Product Spec?productSKU >> NEW URL: http://www.knifecenter.com/kc_new/store_detail.html?s=productSKU >> >> Basically, it is the same OLD URL, except there is a space between Product >> and Spec. Please note both

Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-13 Thread Martijn
On Nov 13, 2007 6:07 PM, Ki Song <[EMAIL PROTECTED]> wrote: > How would I write a second rule for: > OLD URL: http://store.knifecenter.com/pgi-Product Spec?productSKU > NEW URL: http://www.knifecenter.com/kc_new/store_detail.html?s=productSKU > > Basically, it is the same OLD URL, except there is

Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-13 Thread Ki Song
>> How would I write a mod_rewrite rule for the following: >> OLD URL: http://store.knifecenter.com/pgi-ProductSpec?productSKU >> NEW URL: http://www.knifecenter.com/kc_new/store_detail.html?s=productSKU >> >> Is there a way to pass the productSKU to the new url? > > How about: > > RewriteCond

Re: [EMAIL PROTECTED] Mod_Rewrite from old dynamic page

2007-11-13 Thread Martijn
On Nov 13, 2007 5:10 PM, Ki Song <[EMAIL PROTECTED]> wrote: > How would I write a mod_rewrite rule for the following: > OLD URL: http://store.knifecenter.com/pgi-ProductSpec?productSKU > NEW URL: http://www.knifecenter.com/kc_new/store_detail.html?s=productSKU > > Is there a way to pass the product