Re: some problems about mod rewrite

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

 



On 6/28/07, alfredo cosco <orazio.nelson@xxxxxxxxx> wrote:

But I don't know how to write the Rules to rewrite them.
At least
www.Journal.institution.org

has to point here:
www.ojs.institution.org/index.php/Journal

Can anyone help me?

Normally it is best to try it yourself, try debugging it with the
RewriteLog, and then if you still can't make it work, post your best
efforts here for feedback. This isn't a consulting service, after all.

But this should be a relatively simple problem:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.([^.])+\.institution\.org$ [NC]
RewriteRule (.*) /index.php/%1$1

(Hard to tell exactly what should happen with the part of the path
after Journal... I just tacked it on the end.) As always, if that
doesn't work, try the RewriteLog to debug. Depending on how PHP is
configured, you might need a [PT] flag on that last rule, or you might
be better off providing the full unix path to the php script.

Joshua.

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