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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |