[Phpwm] Weird mod-rewrite problem - fixed

Mike Tipping mike at etuna.co.uk
Fri Oct 3 09:04:34 UTC 2008


Ignore the last email. Fixed now.

I had a rule 

RewriteRule ^dm/([^/\.]+)/([^/\.]+).ht*
index.php?code=$1&regcode=dm&source=$2 [L]

That was designed to take account of the designer not being able to decide
is files where .html or .htm and MOD_REWRITE was seeing a match.



On 3/10/08 09:55, "Mike Tipping" <mike at etuna.co.uk> wrote:

> I have site that takes several parameters on the url and loads a survey
> accordingly. To make this easier I have used mod_rewrite so I have a url
> that looks like:
> 
> http://www.frontrange-sam.com/dm/crc/ya6hft/
> 
> The last 6 figure code is a random code that links to a recipients data to
> repopulate the form.
> 
> The modrewite rule for this is:
> 
> RewriteRule ^dm/([^/\.]+)/([^/\.]+)/
> index.php?code=$2&regcode=edm&source=index&lang=$1 [L]
> 
> The issue I have is with 'h' in the code. If you put a h after the third
> character it seems to mess up the mod rewrite rule.
> 
> So 
> 
> http://www.frontrange-sam.com/dm/crc/ya6xft/
> 
> And
> 
> http://www.frontrange-sam.com/dm/crc/hh3445/ work
> 
> But 
> 
> http://www.frontrange-sam.com/dm/crc/ya6hft/ don't
> 
> Any ideas what might be causing this?
> 
> Cheers
> 
> Mike
> 
> 
> 
> _______________________________________________
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/phpwm





More information about the Phpwm mailing list