Htaccess and rewrite of URL?

If you were just using plain HTTP, you could set up the pretty URL server as a proxy that passes every request to the ugly URL server and the response back to the client: RewriteCond %{HTTP_HOST} ^pretty\. Example\. Com$ RewriteRule ^reservations$ ugly.example.com/directory/test.jsp L,P But as you’re using HTTPS, it is not possible without getting an error message, that the certificate’s host name is not correct.

I set this - but I'm losing the 2nd variable (in this case "&rateplanid=33333". When I enter the pretty url with those variables, I am redirected to the ugly url site which doesn't appear to take the second set of variables into consideration - as if it never received the info to do so. – Mo Boho May 11 '09 at 20:19 Do you modify the query of the URL?

If so, add the QSA flag to get the original query automatically appended to the new URL. – Gumbo May 11 '09 at 20:25 not sure I understand, what is a "QSA flag". Sorry I'm bit of a noob with this!

:) here is what I have: RewriteCond %{HTTP_HOST} ^www.prettyurl.com$ RewriteRule ^/reservations$ booking.uglyurl. Com/istay/istay. Jsp L,P – Mo Boho May 11 '09 at 20:44 The comma separated list in square brackets at the end of the directives is called flags.

And if you want to use this rule in the . Htaccess file in you document root, remove the leading slash of your patterns. That directory dependent slash is removed from the URL path before testing the patterns and added again after applying a rule.

– Gumbo May 11 '09 at 20:59 the thing is...the first set of variables (ie.?hotelid=1111) is being transferred over but the SECOND set (i.e. &rateplanid=33333) is not. – Mo Boho May 11 '097 at 14:13.

This guide is worth nothing... – Alex Angelico Nov 16 at 17:12 well it's 2 years old... – Phill Pafford Nov 16 at 17:20.

This is the code that worked for me: RewriteCond %{HTTP_HOST} ^prettyurl.com$ RewriteRule ^reservations$ https://uglyURL. Com/istay/istay. Jsp?

%2 QSA,L It works exactly as I needed it. Many thanks to Gumbo and others for all their help.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions