| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|yet another mod rewrite question|
any help would be well appreciated
| 6:47 pm on Jul 27, 2008 (gmt 0)|
I want requests to /projects/this-is-the-id to get rewritten with a rule to /article.php?project_name=this-is-the-id
My RewriteRule is as so:
RewriteRule ^/projects/(.*?)/?$ /article.php?project_name=$1 [L,NC]
I've verified that my .htaccess file is getting picked up. Any help here?
Thanks so much in advance.
| 10:24 pm on Jul 27, 2008 (gmt 0)|
RewriteRule ^projects/(.*)/*$ /article.php?project_name=$1 [L,NC]
| 10:36 pm on Jul 27, 2008 (gmt 0)|
Holy mess and mother of God!
You rock the T.O.P.!
That worked perfectly!
of course a name like 'TowerOfPower' must have been earned somehow.
Mad props Tower. Thanks so much.
| 10:45 pm on Jul 27, 2008 (gmt 0)|
The .* is "greedy" as a pattern match.
There will be a way of simplifying that to make it more efficient.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved