...

View Full Version : Yet more .htaccess help requested...



kcfried
01-29-2009, 04:21 AM
Hi all. I'm very new to the non-windows side of the web development, and even newer to regex and .htaccess rewrites. I've dug through the forums, and while there's a ton of info, I'm still a little lost.

What I'm trying to do is set upa site that will route like this:

www.mysite.com/SomeName/ -rewrites to: index.php?id=abc123
www.mysite.com/anothername/ - rewrites to: index.php?id=def456

and so on - to the tun of about 60-70 unique IDs. I also have to make sure that the faux directory name is case insensitive.

Any help is appreciated. thanks in advance!

CyberPirate
02-04-2009, 01:40 AM
Try this one:)


RewriteRule ^([^/]*).*$ index.php?id=$1

It should make www.mysite.com/index.php?id=abc123 into www.mysite.com/abc123



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum