Arrrghhh!

It turns out that mod_rewrite doesn't really work with PHP-CGI... which of course is how my server is configured. I could turn that off, but then I'd have horrible security problems. Or I could do something really freaky with rewriting to a non-existant dummy file handler, but frankly...

Arrghhh!

If none of the above makes any sense, pray that this continues to be the case for you. As Vinay puts it, regular expressions are straight out of the realm of Satan.

1 Comment

hrm. well, what I do is this:

RewriteRule [match] redirect.php

Just analyse the URL in redirect.php and then do a redirect at that level, no? OOOgly, but it works. If you want to skip the redirect part, then do

?

if (stuff on the SERVER[REQUESTURI] variable) { set parameters include (“file which does the work”) }

repeat for as many clauses as necessary.

Leave a comment

About Jonathan

Lapsed: physicist and television producer. Now: media consultant/freelance film-maker, trying to reignite public-service children's media, particularly around science and engineering.

Categories

Recent Entries

  • Internet Watch Foundation filtering

    Lots of talk on Twitter today about [this](http://en.wikinews.org/wiki/UK_ISPs_erect_%27Great_Firewall_of_Britain%27_to_censor_Wikipedia): six major UK ISPs (including mine, the previously-rather lovely [Be](https://www.bethere.co.uk/)/O2, also Orange, Virgin, Demon, EasyNet, PlusNet and...

  • Building buzz without a budget

    Here's an excellent, [short presentation from the Nature Conservancy](http://www.slideshare.net/jcolman/building-buzz-without-a-budget-presentation?nocache=5510&type=powerpoint), outlining their use of Digg to drive traffic to a new website they were promoting. I...

  • The supercomputer in your web browser

    Computational Fluid Dynamics... [in Flash](http://www.joecutting.com/windTunnel.php). This is plain *wrong*, I tell you....

  • Things to know about the Panasonic HMC150/1

    I finally succumbed, and bought a proper camera. A video camera, none of your stills nonsense, nor yet a [stills camera masquerading as a video...

  • Alexandria Railway Station is in Dalaman, Turkey.

    Quoth [Wikipedia](http://en.wikipedia.org/wiki/Dalaman): > In 1906, Alexandria train station was built by mistake in Dalaman. ... In 1905 the then Khedive of Egypt Abbas Hilmi Pasha...

Close