httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arne Heizmann <>
Subject Re: [users@httpd] mod_rewrite problems
Date Fri, 02 Sep 2005 17:29:56 GMT

> 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>

If you want to allow users to access the page at /help.php while its 
real URL is /modules/content/index.php?id=14, then you have it the wrong 
way around. You want:

	RewriteRule ^/help.php /modules/content/index.php?id=14 [L]

But if this is really what you want, I'm wondering what the point in 
having the ".php" would be; I'd just call it /help.

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.


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