You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andoni <an...@eurokom.ie> on 2005/10/24 16:39:29 UTC

[users@httpd] Re: Re: Should be easy RewriteRule issue: mod_rewrite.

Hi,

Removing the "R" broke it :-(

Now when I go to www.mydomain.com/frontpage it does not re-write it at all, just giving me back a "page cannot be found" instead.

Andoni.
  ----- Original Message ----- 
  From: Joshua Slive 
  Newsgroups: gmane.comp.apache.user
  Sent: Monday, October 24, 2005 3:23 PM
  Subject: Re: Re: Should be easy RewriteRule issue: mod_rewrite.


  On 10/24/05, Andoni <an...@eurokom.ie> wrote:
  >
  > Now why could the documentation not have said that?

  The two types of redirect are discussed at
  http://httpd.apache.org/docs/2.0/urlmapping.html

  It is assumed that you wouldn't possibly dare trying to read the
  mod_rewrite docs unless you are already a url-guru ;-)

  Seriously, there is a "rewrite" of the mod_rewrite docs underway at
  http://httpd.apache.org/docs/2.0/rewrite/
  but it is kind of stalled.

  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@httpd.apache.org
     "   from the digest: users-digest-unsubscribe@httpd.apache.org
  For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Re: Re: Should be easy RewriteRule issue: mod_rewrite.

Posted by Andoni <an...@eurokom.ie>.
Hi,

Found the problem. The PT worked. I think it's because I am forwarding everything to my Tomcat server using JkMount. This must be a form of Alias?

Anyway all working now. Thanks,

Andoni.
  ----- Original Message ----- 
  From: Joshua Slive 
  Newsgroups: gmane.comp.apache.user
  Sent: Monday, October 24, 2005 4:38 PM
  Subject: Re: Re: Re: Should be easy RewriteRule issue: mod_rewrite.


  On 10/24/05, Andoni <an...@eurokom.ie> wrote:
  >
  > Hi,
  >
  > Removing the "R" broke it :-(
  >
  > Now when I go to www.mydomain.com/frontpage it does not re-write it at all,
  > just giving me back a "page cannot be found" instead.

  Then you need to use the RewriteLog to figure out what is going on. 
  One possibility is to add the PT flag to the RewriteRule, which is
  necessary if the URL will go through further aliasing.

  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@httpd.apache.org
     "   from the digest: users-digest-unsubscribe@httpd.apache.org
  For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Re: Should be easy RewriteRule issue: mod_rewrite.

Posted by Joshua Slive <js...@gmail.com>.
On 10/24/05, Andoni <an...@eurokom.ie> wrote:
>
> Hi,
>
> Removing the "R" broke it :-(
>
> Now when I go to www.mydomain.com/frontpage it does not re-write it at all,
> just giving me back a "page cannot be found" instead.

Then you need to use the RewriteLog to figure out what is going on. 
One possibility is to add the PT flag to the RewriteRule, which is
necessary if the URL will go through further aliasing.

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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org