Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-15 Thread Eric Covener
On 7/12/07, Naveen Sharma <[EMAIL PROTECTED]> wrote: In this case the URL is getting preserved but action is not getting called and I am getting 404 Error page. Try the [PT] flag on your rewriterule. -- Eric Covener [EMAIL PROTECTED] ---

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Jeff Fulmer
What does the error_log say? Post the 404 error. > This URL is not hitting the action to which the forward is done. > Its the initaial URL which gets hit from the Appserver. > The issue here is that the action is not being called with the Rewrite > Module. > Aas a result of which I am getting 404

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Martijn
On 7/12/07, Naveen Sharma <[EMAIL PROTECTED]> wrote: This URL is not hitting the action to which the forward is done. Its the initaial URL which gets hit from the Appserver. The issue here is that the action is not being called with the Rewrite Module. Aas a result of which I am getting 404 error

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Naveen Sharma
This URL is not hitting the action to which the forward is done. Its the initaial URL which gets hit from the Appserver. The issue here is that the action is not being called with the Rewrite Module. Aas a result of which I am getting 404 error message. The rewrite is not happening at the Apache e

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Jeff Fulmer
Do you *have* a /action page? What's in the error_log? > In this case the URL is getting preserved but action is not getting called > and I am getting 404 Error page. > > Please advice > > Navin > > > On 7/12/07, Jeff Fulmer <[EMAIL PROTECTED]> wrote: >> >> This works for me: >> >> RewriteRule ^(

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Robert T Wyatt
What does the server say about the error? In other words, what is the final URL that is (not) being served? Naveen Sharma wrote: > In this case the URL is getting preserved but action is not getting > called and I am getting 404 Error page. > > Please advice > > Navin > > > On 7/12/07, *Jef

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Naveen Sharma
In this case the URL is getting preserved but action is not getting called and I am getting 404 Error page. Please advice Navin On 7/12/07, Jeff Fulmer <[EMAIL PROTECTED]> wrote: This works for me: RewriteRule ^(.*)-hotels$ /action.php?city=$1 http://lisa.joedog.org/pennsylvania-hotels (

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Martijn
On 7/12/07, Naveen Sharma <[EMAIL PROTECTED]> wrote: I want the URL to be visible as http://dev.home.en/hawaii-hotels but internally it should use http://dev.home.en/action?city=hawaii. I have used this RewriteEngine On RewriteRule ^/([a-zA-Z]*)(-)(hotels)/ http://%{HTTP_HOST}/action?city=$1 T

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Jeff Fulmer
This works for me: RewriteRule ^(.*)-hotels$ /action.php?city=$1 http://lisa.joedog.org/pennsylvania-hotels (Note: I changed action to action.php in order to test...) Jeff > I have tried this but this is changing the URL.The initial URL gets > modified. > > > > On 7/12/07, Martijn <[EMAIL P

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Mark Watts
> Hi Scott, > > > I want the URL to be visible as > http://dev.home.en/hawaii-hotels but internally it should use > http://dev.home.en/action?city=hawaii. > > I have used this > RewriteEngine On > RewriteRule ^/([a-zA-Z]*)(-)(hotels)/ http://%{HTTP_HOST}/action?city=$1 Rewriting to an external h

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Naveen Sharma
Hi Scott, I want the URL to be visible as http://dev.home.en/hawaii-hotels but internally it should use http://dev.home.en/action?city=hawaii. I have used this RewriteEngine On RewriteRule ^/([a-zA-Z]*)(-)(hotels)/ http://%{HTTP_HOST}/action?city=$1 This changes the URl to http://dev.expedia.j

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Scott Wilcox
I think you need to be a little more specific in your request. Do you mean that you want the internally processed URL to remain the same, or the URL that the end user is seeing? If its the latter, then Martijn's example does that fine. Scott. Naveen Sharma wrote: > I have tried this but this is

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Naveen Sharma
I have tried this but this is changing the URL.The initial URL gets modified. On 7/12/07, Martijn <[EMAIL PROTECTED]> wrote: > I have a URL of this form > http://dev.home.en/hawaii-hotels > I want to redirect it to > http://dev.home.en/action?city=hawaii > > without actually modifying the > U

Re: [EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Martijn
I have a URL of this form http://dev.home.en/hawaii-hotels I want to redirect it to http://dev.home.en/action?city=hawaii without actually modifying the URL which is(http://dev.home.en/hawaii-hotels). Please let me know if this can be done using Apache hhpd.conf without modifying the initial URL

[EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Naveen Sharma
Hi, I have a URL of this form http://dev.home.en/hawaii-hotels I want to redirect it to http://dev.home.en/action?city=hawaii without actually modifying the URL which is(http://dev.home.en/hawaii-hotels). Please let me know if this can be done using Apache hhpd.conf without modifying the initia

[EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Naveen Sharma
Hi, I have a URL of this form http://dev.home.en/hawaii-hotels I want to redirect it to http://dev.home.en/action?city=hawaii without actually modifying the URL which is(http://dev.home.en/hawaii-hotels). Please let me know if this can be done using Apache hhpd.conf without modifying the initia

[EMAIL PROTECTED] Maintaing the URL when Rewriting

2007-07-12 Thread Naveen Sharma
Hi, I have a URL of this form http://dev.home.en/hawaii-hotels I want to redirect it to http://dev.home.en/action?city=hawaii without actually modifying the URL which is(http://dev.home.en/hawaii-hotels). Please let me know if this can be done using Apache hhpd.conf without modifying the initia