Re: [users@httpd] mod_rewrite problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I have some URLs that are ugly: http://www.example.com/modules/ content/index.php?id=14 which I would like to change to:
http://www.example.com/help.php.  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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux