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
https://forums.phpfreaks.com/topic/143667-rewriterule/
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
https://forums.phpfreaks.com/topic/143667-rewriterule/#findComment-753818
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
https://forums.phpfreaks.com/topic/143667-rewriterule/#findComment-754262
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.