Re: [users@httpd] rewrite rule

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

 



Hi,
I am also new to this.
Can you check the following rule

RewriteEngine On
RewriteRule ^/(.*)  http://host/script.php?p=$1

I think, what ever is there after the hostname will be $1
for ex:
http://abcd.com/pets
$1 will be pets.

I am also looking at URL rewriting.
Please check that and let me know the result.

Thanks,
Om.

Krist van Besien wrote:
On 5/22/06, Mariusz Handke <oiram@xxxxxxxxx> wrote:
Hi,

Can anyone help me to create, or explain how to get around with rewrite
rules, please. The thing to do is:
in: http://host/dir/file
out: http://host/script.php?p=/dir/file



RewriteRule ^(.*)$        /script.php?p=$1

Krist



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