RE: [users@httpd] Re: mod_rewrite issue

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

 



I do not think that will match either. I believe you need to include the first /

 RewriteRule ^/([A-Za-z])/$ index.php?object=$1

-----Original Message-----
From: Joost de Heer [mailto:sanguis@xxxxxxxxx] 
Sent: Friday, July 29, 2005 8:03 PM
To: Thomas
Cc: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] Re: mod_rewrite issue

> RewriteEngine on
> RewriteRule ^([A-Za-z])$ /$1/ [R]
> RewriteRule ^([A-Za-z])/$ index.php?object=$1
>
> Now, if I go http://mysite.com/signup/ it does not map it but only 
> displays a 404. What am I missing?

That you match only one character in the regexp, instead of an arbitrary number.

What you need is something like
RewriteRule ^([A-Za-z]+)/$ /index.php?object=$1

Joost


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


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