CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Yet more .htaccess help requested... (http://www.codingforums.com/showthread.php?t=157375)

kcfried 01-29-2009 03:21 AM

Yet more .htaccess help requested...
 
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 12:40 AM

Try this one:)

Code:

RewriteRule ^([^/]*).*$ index.php?id=$1
It should make www.mysite.com/index.php?id=abc123 into www.mysite.com/abc123


All times are GMT +1. The time now is 07:41 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.