Re: mod_rewrite

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

 



Joshua, thanks for the very useful info. The site is currently not opening, but I'll give it a try again later. As for the second part, there is a redirect rule:
 
Redirect /x10 http://DOMAIN_NAME/landing/index.jsp?wfId=685
 
Thanks,
Diar

----- Original Message ----
From: Joshua Slive <joshua@xxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Wednesday, May 23, 2007 4:41:56 PM
Subject: Re: mod_rewrite

On 5/23/07, Diar Gashi <diar_gashi@xxxxxxxxx> 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 http://example.com/html/404.html

> 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

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


Shape Yahoo! in your own image. Join our Network Research Panel today! http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 hot CTA = Join our Network Research Panel
[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