Re: mod_rewrite

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

 



Oops..I got the first part working, thanks a bunch.
This is what I'm using for the second part:
 
RewriteRule /x194 /landing/dyncon/prom/grea__byhand_x194.jsp [L,R]
 
and the rewrite logs show
 
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (2) init rewrite engine with requested uri /x194
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/abcdef' to uri '/x194'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern 'department\.jsp$' to uri '/x194'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '.*' to uri '/x194'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/chtta' to uri '/x194'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/departments/department.jsp' to uri
'/x194'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/departments/degree.jsp' to uri '/x1
94'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/x194' to uri '/x194'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (2) rewrite /x194 -> http://DOMAIN_NAME/landing/dyncon/pro
m/grea__byhand_x194.jsp
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (2) explicitly forcing redirect with http://DOMAIN_NAME/la
nding/dyncon/prom/grea__byhand_x194.jsp
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (1) escaping http://DOMAIN_NAME/landing/dyncon/prom/grea__
byhand_x194.jsp for redirect
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (1) redirect to http://DOMAIN_NAME/landing/dyncon/prom/gre
a__byhand_x194.jsp [REDIRECT/302]
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (2) init rewrite engine with requested uri /landing/dyncon
/prom/grea__byhand_x194.jsp
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/abcdef' to uri '/landing/dyncon/pro
m/grea__byhand_x194.jsp'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern 'department\.jsp$' to uri '/landing/d
yncon/prom/grea__byhand_x194.jsp'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '.*' to uri '/landing/dyncon/prom/gre
a__byhand_x194.jsp'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/chtta' to uri '/landing/dyncon/prom
/grea__byhand_x194.jsp'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/departments/department.jsp' to uri
'/landing/dyncon/prom/grea__byhand_x194.jsp'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/departments/degree.jsp' to uri '/la
nding/dyncon/prom/grea__byhand_x194.jsp'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (3) applying pattern '/x194' to uri '/landing/dyncon/prom/
grea__byhand_x194.jsp'
MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (1) pass through /landing/dyncon/prom/grea__byhand_x194.js
p

----- Original Message ----
From: Joshua Slive <joshua@xxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Thursday, May 24, 2007 12:41:18 PM
Subject: Re: mod_rewrite

On 5/24/07, Diar Gashi <diar_gashi@xxxxxxxxx> wrote:
>
> Joshua, the link you provided still does not open up for me.

Uhg. That wasn't a URL to open. That was an example of a directive to
achieve what you want. To be more explicit, place the following in
httpd.conf:
ErrorDocument 404 http://example.com/notfound.html
where you need to replace http://example.com/notfound.html with the
absolute URL to your error document.

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

Show us EXACTLY what you tried, along with relevant log excerpts. In
particular, you need to use the RewriteLog to debug mod_rewrite
problems.

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



Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.
[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