IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Resolution.
Well damn. I was being to literal, plus I was doing everything... and nothing. Here is what ended up working.

To rewrite this:
http://www.thisdomain.com/site/PageServer?pagename=Urgent_Bloating_Gas

To this:
http://www.somedomain.org/UBG

and to scrub the Query String from the rewrite, causing this:
http://www.somedomain.org/UBG?pagename=Urgent_Bloating_Gas


In the www.thisdomain.com httpd config:
RewriteCond %{QUERY_STRING} pagename=Urgent_Bloating_Gas
RewriteRule ^/site/PageServer http://www.somedomain.org/UBG? [R=301,L]


The Question mark at the end of the destination URL, clears the Query String.
The R=301 makes SEO peeps swoon (Redirect response code 301 and Moved Permanently)
The L means this is the last rule to process if it matches.
New Proof.
In my mind at least, your adventures are proof that rewrite rules are a bandaid on a hack and best avoided if at all possible. :-/

Wade.
Just Add Story http://justaddstory.wordpress.com/
New very useful when an app doesnt have the capabilities
these days an app that doesnt have the capabilities should be ash canned
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New Agreed... but.
Many places just don't have the capital to just replace apps. And need to just make due.
New Its more that...
The organization wanted to get away from the previous application that did the Website for them. Charging US$21,000 per year for an essentially static website...

They are having to support the old website... and point all the "pages in Google" to the proper pages at the new merged site.

They are paying an SEO/Marketing firm a ton of money and they had this arm-lengths long list of *CRITICAL* old URLs that had to be redirected to the proper location.
New I feel your pain.
I've fought SEO URL battles before, too. I've made sure we have URL handling tricks (for database-driven data!) in the app so we don't have to do that sort of shit in rewrite rules.

Wade.
Just Add Story http://justaddstory.wordpress.com/
     Somehow I can't read docs for Apache and RewriteCond/Rule - (folkert) - (12)
         Can't you do a partial match? - (drook)
         Re: Somehow I can't read docs for Apache and RewriteCond/Rul - (boxley) - (2)
             Re: Somehow I can't read docs for Apache and RewriteCond/Rul - (folkert) - (1)
                 email be the url got minged -NT - (boxley)
         The commands are case sensitive - (scoenye) - (1)
             Re: The commands are case sensitive - (folkert)
         Resolution. - (folkert) - (5)
             Proof. - (static) - (4)
                 very useful when an app doesnt have the capabilities - (boxley) - (1)
                     Agreed... but. - (folkert)
                 Its more that... - (folkert) - (1)
                     I feel your pain. - (static)

Ho ho, then you ain't gettin' no Coke!
42 ms