RE: mod_rewrite do not rewrite internals

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

 



Hi,

You need to use $1 instead of $0. I didn't know what $0 meant but now I guess it's "current rewriten URL"...
Anyway, "$something" starts at 1.

Olivier

Olivier CHIROUZE
I&0 Infrastructure
Volvo Information Technology
 

> -----Original Message-----
> From: Емил Иванов / Emil Ivanov [mailto:emil.vladev@xxxxxxxxx] 
> Sent: 05 May 2007 14:40
> To: users@xxxxxxxxxxxxxxxx
> Subject:  mod_rewrite do not rewrite internals
> 
> Hi,
> 
> I'm trying to make simple url rewriting for my site using mod_rewrite.
> 
> The .htaccess:
> 
> RewriteEngine On
> RewriteRule ^(.*)$ index.php?path=$0
> 
> When I test with http://localhost/some/path/here
> but instead of the path (some/path/here) I get index.php in 
> the path?!?
> 
> I looked in the rewrite.log and it matches correctly but it doesn't
> stop when the rule is matched and does it again for the rewritten
> rule. I tried [NS] as a flag but it doesn't helped...
> 
> Any ideas would be appreciated.
> 
> Regards,
> Emil Ivanov
> 
> ---------------------------------------------------------------------
> 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