httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diar Gashi <>
Subject Re: [users@httpd] mod_rewrite
Date Thu, 24 May 2007 16:26:49 GMT
Joshua, the link you provided still does not open up for me. Also, for the second part, I tried
using rewriterule instead of redirect, and still getting the same thing - when I type http://DOMAINNAME/x10
the url shows http://DOMAINNAME/landing/index.jsp?wfId=685
, but what I want it to show is http://DOMAINNAME/x10.

----- Original Message ----
From: Joshua Slive <>
Sent: Wednesday, May 23, 2007 4:41:56 PM
Subject: Re: [users@httpd] mod_rewrite

On 5/23/07, Diar Gashi <> wrote:
> I need to change a bahaviour on the rewrite of the apache server. Right now,
> if I type in a path that does not exist (like /nopage.html) Apache will
> serve up the 404 page (/html/404.html), but the URL will still read
> /nopage.html. I need the URL to be /html/404.html

This is usually a bad idea, since it requires returning a redirect
status code to the client instead of the not-found status code. This
can confuse search engines. But if you want to do it, it is easy:
Errordocument 404

> Conversely, when someone goes to a page that does exist (/x10) Apache will
> serve up the redirected page (/landing/index.jsp?wfId=685) We need Apache to
> instead serve up /x10.

Show us the directives you use currently to do the redirect. A simple
guess would be
RewriteRule ^/x10 /landing.index.jsp?wfld=685


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

____________________________________________________________________________________Get the
free Yahoo! toolbar and rest assured with the added security of spyware protection.
View raw message