Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Question mark problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Zut86
Newbie
Newbie


Joined: 06 October 2008
Online Status: Offline
Posts: 3
Posted: 06 October 2008 at 8:58am | IP Logged Quote Zut86

Hello,

I'm on this problem since some hours and i'm being crazy !

I have an url like this :

www.mysite.com/toto?id=1&tata=dkj

I would like to change in

www.mysite.com/search=1

the rule is

RewriteRule .*toto\?id=([0-9]+).* search=$1 [R=301,L]

I really don't understand the problem, thanks if you can help me !!!

Back to Top View Zut86's Profile Search for other posts by Zut86
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 06 October 2008 at 9:15am | IP Logged Quote Vyacheslav

Hi,
Please try this:
Code:
RewriteCond %{QUERY_STRING} ^id=(\d+)&tata=dkj$ [NC]
RewriteRule ^/toto/?$ /search=%1? [NC,L,R=301]


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Zut86
Newbie
Newbie


Joined: 06 October 2008
Online Status: Offline
Posts: 3
Posted: 07 October 2008 at 7:55am | IP Logged Quote Zut86

Thanks Vyacheslav for your help and excuse me for my answer just now.

It still doesnt work and i don't really undestand why.

Back to Top View Zut86's Profile Search for other posts by Zut86
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 07 October 2008 at 8:01am | IP Logged Quote Vyacheslav

Hi,
Please provide your rewrite.log for specified rules.

__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Zut86
Newbie
Newbie


Joined: 06 October 2008
Online Status: Offline
Posts: 3
Posted: 08 October 2008 at 3:23am | IP Logged Quote Zut86

Finally you were right ! It was my fault, i did not write correctly what you gave to me. Thank you very much Vyacheslav :)

Back to Top View Zut86's Profile Search for other posts by Zut86
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum