httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] mod_rewrite problems
Date Wed, 31 Aug 2005 20:02:30 GMT
On 8/31/05, Jennifer Zelazny <> wrote:
> Hello.  I have what I thought would be a simple mod_rewrite need, but
> a few hours later, I need some help.
> I have some URLs that are ugly:
> content/index.php?id=14 which I would like to change to:
>  I tried creating a .htaccess file
> with:
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteRule ^/modules/content/index.php\?id=14$ /help.php [L]
> </IfModule>

1. Get rid of the <IfModule> stuff.  It just hides useful errors.

2. See the note on the query string under

3. The correct result will look something like
RewriteEngine On
RewriteCond %{QUERY_STRING} ^id=14$
RewriteRule ^/modules/content/index.php /help.php


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message