More information about the Underscore mailing list

[_] Grrr redirect...

Robin Layfield robin at ultrasimplified.com
Thu Apr 14 10:27:19 BST 2011

Andy,

this might help - just came up on twitter:

http://htaccess.madewithlove.be/

It's an htaccess script tester

Robin

-- 
Robin Layfield
(mobile) 07807 144386
(twitter) @robinlayfield
(web) ultrasimplified.com

this email has been ultrasimplified.
On Thursday, 14 April 2011 at 09:42, Robin Layfield wrote: 
> Hi Andy,
> 
> You might need to put a $ at the end of the search condition, eg.
> 
> RewriteRule ^Downloads/VLCSF(.*)$ /Downloads/VLCStreamer/VLCStreamerSetup.exe
> 
> I've tried this out and it appears to redirect correctly.
> 
> Robin
> 
> 
> -- 
> Robin Layfield
> (mobile) 07807 144386
> (twitter) @robinlayfield
> (web) ultrasimplified.com
> 
> this email has been ultrasimplified
> On Thursday, 14 April 2011 at 09:05, Andy Davies wrote: 
> > On 9 March 2011 17:41, Rob <rob at hobbyistsoftware.com> wrote:
> > 
> > > Hi Folks,
> > > 
> > > One of my windows apps has a stupid error in it where it is going to the
> > > wrong address to get the upgrade to itself.
> > > 
> > > The new version is fixed - but I need to help the old version by
> > > redirecting
> > > 
> > > 
> > > http://hobbyistsoftware.com/Downloads/Downloads/VLCSF%D0%90treamer/VLCStreamerSetup.exe
> > > 
> > > to
> > > 
> > > http://hobbyistsoftware.com/Downloads/VLCStreamer/VLCStreamerSetup.exe
> > > 
> > > there are a couple of wierd characters in that top address which I have
> > > given in % encoding.
> > > 
> > > So, I'm trying to do a redirect in my httpd.conf to get me to the right
> > > address
> > > 
> > > it seems to me that either of these should work:
> > > 
> > > RewriteRule ^Downloads/VLCSF(.*)
> > > /Downloads/VLCStreamer/VLCStreamerSetup.exe
> > > 
> > > Redirect PERMANENT /Downloads/VLCSF(.*)
> > > http://hobbyistsoftware.com/Downloads/VLCStreamer/VLCStreamerSetup.exe
> > > 
> > > 
> > > I do have rewrite rules working, and this old redirect
> > > RewriteRule ^MotherImages/(.*)$ /images/motherImages/$1 [L]
> > > is succesfully redirecting
> > > http://hobbyistsoftware.com/MotherImages/alarms.gif
> > > to
> > > http://hobbyistsoftware.com/images/motherImages/alarms.gif
> > > 
> > > 
> > > but frankly, I don't know what I'm doing here - and neither of them do
> > > work.
> > > 
> > > Nor do the many variants I have tried.
> > Just come across this via HN
> > 
> > http://htaccess.madewithlove.be/
> > 
> > Might be handy for test rewrite rules in the future....
> > 
> > Andy
> > -- 
> > underscore_ list info/archive -> http://www.under-score.org.uk/mailman/listinfo/underscore
> -- 
> underscore_ list info/archive -> http://www.under-score.org.uk/mailman/listinfo/underscore
>