Jump to content

RewriteRule


gevans

Recommended Posts

I use a lot of htaccess for rewriting urls but for somereason this simple one is screwing me up

 

I want this;

 

confirmation?4196F6D8-A04E-045E-E686-05892BAC46C8

 

to point at;

 

confirmation.php?guid=4196F6D8-A04E-045E-E686-05892BAC46C8

 

For this I'm using;

 

RewriteRule ^confirmation?([A-Z0-9-]{36})$ confirmation.php?guid=$1

 

For some reason this isn't working??

Link to comment
Share on other sites

I use a lot of htaccess for rewriting urls but for somereason this simple one is screwing me up

 

I want this;

 

confirmation?4196F6D8-A04E-045E-E686-05892BAC46C8

 

to point at;

 

confirmation.php?guid=4196F6D8-A04E-045E-E686-05892BAC46C8

 

For this I'm using;

RewriteRule ^confirmation?([A-Z0-9-]{36})$ confirmation.php?guid=$1

 

 

 

 

Maybe the question mark is messing things up?

Maybe put a backslash before it?

Link to comment
Share on other sites

Thanks for the try, the third option was the only one I hadn't attempted and it still offered no luck. I've decided to go with a forward slash instead of the question mark now, which kind of proves taht there isn't a problem with the rewrite as it works perfectly.

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.