[thelist] 301 redirects in htaccess

Renoir Boulanger renoirb at gmail.com
Wed Jul 25 17:17:59 CDT 2012


You could also use a dedicated controller who's job is to redirect an add some better figuring... and add more elegant routes names.

Have a look at the Routing engine of symfony2. Actually if it is only one on one Silex is enough. 

But a either silex/symfony2 controller could lookup the actual article and get a slugified version amd forward it to .. it.

Url like you have is so 1999 :)

hope it helps

--
Renoir Boulanger
http://renoirboulanger.com/

(envoyé de mon téléphone)
~

On 2012-07-25, at 10:06, David Kaufman <david at gigawatt.com> wrote:

> On 7/21/2012 4:23 PM, John Allsopp wrote:> This
> > http://www.johnallsopp.co.uk/blogViewer.php?blog=2012
> > is now this
> > http://www.johnallsopp.co.uk/oldSite/blogViewer.php?blog=2012
> >
> > Do you know how to catch any URL with blogViewer in it and route
> > it to the oldSite page, and retain all that comes after? Do tell.
> 
> try this:
> 
>  RewriteEngine On
>  Rewrite Base /
>  RewriteRule blogViewer(.*)$  oldSite/blogViewer$1 [R,L]
> 
> hth,
> 
> -dave
> 
> 
> 
> 
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt ! 


More information about the thelist mailing list