Jump to content

[SOLVED] Having troubles...


SharkBait

Recommended Posts

Hi,

 

I want to be able to have a URL like this: www.myurl.com/?m=show&id=3

which normally points to index.php redirect to index2.php.

 

This is what I have but I think the first ? is messing up the rule:

 

RewriteRule ^?m=show&id=([0-9]+)$ index2.php?m=show&id=$1

 

What can I do do correct it? I tried escaping the ? by using \? but that didn't work.

Link to comment
Share on other sites

Ah what I was looking for was to keep the query string intac as i passed it to another page.

 

RewriteCond ^{QUERY_STRING} ^m=show&id=([0-9]+)$
RewriteRule ^ index2.php

 

All works now :)

 

It is because of the question mark that I want to keep it will see it as a URL query.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.