| 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
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.
RewriteRule ^projects/(.*)/*$ /article.php?project_name=$1 [L,NC]
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.
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