Welcome to WebmasterWorld Guest from 54.226.147.190

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

yet another mod rewrite question

any help would be well appreciated

     

zuko105

6:47 pm on Jul 27, 2008 (gmt 0)

10+ Year Member




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:


Options +FollowSymlinks
RewriteEngine On
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.

TowerOfPower

10:24 pm on Jul 27, 2008 (gmt 0)

10+ Year Member



RewriteRule ^projects/(.*)/*$ /article.php?project_name=$1 [L,NC]

zuko105

10:36 pm on Jul 27, 2008 (gmt 0)

10+ Year Member



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.

-zuko

g1smd

10:45 pm on Jul 27, 2008 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



The .* is "greedy" as a pattern match.

There will be a way of simplifying that to make it more efficient.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month