Forum Moderators: phranque

Message Too Old, No Replies

rewrite help, is this possible?

my mind is numb from going through the docs.

         

pjf5000

4:05 pm on Mar 30, 2007 (gmt 0)

10+ Year Member



I'm sure it's much more simple then I've made it out to be - which is usually the case.

I'm trying to do the following:

www.domain.com/name/pjf

rewrites to:

www.domain.com/Names/show.php?m=PJF

...

www.domain.com/name/sam

rewrites to:

www.domain.com/Names/show.php?m=SAM

--

the name is dynamic, I need a rule that will work for all the names.

Any help or a point in the right direction would be greatly appreciated

jdMorgan

5:07 pm on Mar 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's a simple thing to implement, but with one major exception. If you are doing this in .htaccess, the conversion of lowercase to uppercase will be prohibitively inefficient. If you can either allow lowercase or even mixed-case names as m= values, or if you can modify "show.php" to do the case-conversion after it is invoked, then this problem devolves to a simple rewrite given in many of the Apache examples and tutorials, and available in hundreds of our threads here.

Jim