RewriteRule question

This is a discussion on RewriteRule question within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi listmembers, I'm having trouble getting an rewriterule to work. What I basicly need it cutting of the end ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-30-2006
jaccorens@gmail.com
 
Posts: n/a
Default RewriteRule question

Hi listmembers,

I'm having trouble getting an rewriterule to work. What I basicly need
it cutting of the end of an url, when it contains one specific keyword:

index.php?action=something&sid=robot > index.php?action=something

This is what I have now, but that does not work as I think it should.

RewriteRule ^/index\.php?(.*)&sid=robot$ /index.php?$1

Any insight?

Best,
Jacco

  #2 (permalink)  
Old 07-01-2006
Xicheng Jia
 
Posts: n/a
Default Re: RewriteRule question

jaccorens@gmail.com wrote:
> Hi listmembers,
>
> I'm having trouble getting an rewriterule to work. What I basicly need
> it cutting of the end of an url, when it contains one specific keyword:
>
> index.php?action=something&sid=robot > index.php?action=something
>
> This is what I have now, but that does not work as I think it should.
>
> RewriteRule ^/index\.php?(.*)&sid=robot$ /index.php?$1
>

you need to escape the question mark in your pattern..

RewriteRule ^/index\.php\?(.*)&sid=robot$ /index.php?$1

Xicheng

  #3 (permalink)  
Old 07-02-2006
Jacco
 
Posts: n/a
Default Re: RewriteRule question


Xicheng Jia wrote:
> jaccorens@gmail.com wrote:
> > Hi listmembers,
> >
> > I'm having trouble getting an rewriterule to work. What I basicly need
> > it cutting of the end of an url, when it contains one specific keyword:


> you need to escape the question mark in your pattern..
>
> RewriteRule ^/index\.php\?(.*)&sid=robot$ /index.php?$1
>
> Xicheng


That still doesn't work for me somehow.

My url, found on google reads like:

http://www.mailamac.nl/index.php?act...W500&sid=robot

What I want now, is that the client that clicks the url found, actually
loads this:

http://www.mailamac.nl/index.php?act...roductId=FW500

So an new session ID is created by the webstore engine.

Maybe I should not use an RewriteRule?

Thanks,
Jacco

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0