homepage Welcome to WebmasterWorld Guest from 54.211.7.174
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
yet another mod rewrite question
any help would be well appreciated
zuko105




msg:3708687
 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:

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




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

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

zuko105




msg:3708818
 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.

-zuko

g1smd




msg:3708823
 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved