Redirect?

Is there a way to set up a page so that it silently redirects to another
one

Something that results in what one might conceive of as
<r:redirect dest="/about/faq" />
with appropriate 404 handling?


An NSA-employed acquaintance, when asked whether the government
can crack DES traffic, quipped that real systems are so insecure
that they never need to bother. Unfortunately, there are no easy
recipes for making a system secure, no substitute for careful
design and critical, ongoing scrutiny.
– Matt Blaze in AC2

Anton J Aylward wrote:

Is there a way to set up a page so that it silently redirects to another one

Something that results in what one might conceive of as
<r:redirect dest=“/about/faq” />
with appropriate 404 handling?

Anton,

I started to do that for some pages on kckcc.edu, but found it was much
easier to just write a rewrite rule instead. Here’s an example – this
should work on Apache and Litespeed.

RewriteCond %{REQUEST_URI} ^/some/old/page
RewriteRule ^/some/old/page(.*) /about/faq$1 [L,R]

If you want it to return a different redirect code (other than 301), you
can append that to the R inside the square brackets. You might also
find this helpful:
http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/

Hope that helps!

Sean

Sean C. said the following on 01/28/2007 01:50 PM:

I started to do that for some pages on kckcc.edu, but found it was much
easier to just write a rewrite rule instead. Here’s an example – this
should work on Apache and Litespeed.

RewriteCond %{REQUEST_URI} ^/some/old/page
RewriteRule ^/some/old/page(.*) /about/faq$1 [L,R]

[…]

It helps me, in the role of the Webmaster.
It doesn’t help the client since she only has access to the admin part
of
Radiant and doesn’t have shell access and would be freaked out by that
cheat-sheet page. (I can’t say that’s its illuminating to me. I
suppose
you have to now all this stuff and view the cheat sheets as an aide
memoir.)
That’s what the ‘techie geeks’ like us are for, she says.


Any simple problem can be made insoluble if enough meetings are held to
discuss it.

On 28/01/07, Anton J Aylward [email protected] wrote:

recipes for making a system secure, no substitute for careful
design and critical, ongoing scrutiny.
– Matt Blaze in AC2


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant

I set up a layout called ‘Redirect’ that has the following template:

Then if I have a page I want to redirect elsewhere I just give it the
‘Redirect’ layout and put the url I want to redirect to in the body.

This is excellent stuff for unix newbies like myself. That
mod_rewrite cheat sheet is really helpful.

I addition, many web hosts provide a web based interface where you
can create your redirects. I use http://site5.com and I was searching
for a solution to the redirect problem. I had misspelled the title of
a page, and spread the link before I realised my mistake, and I
wanted the old link to redirect to the correct page.

I found that I could create the redirect easily using the site
administration tools provided. It’s not as flexible as writing your
own mod_rewrite rules, but for simple redirects it is really easy and
simple to use.

I can’t write specific instructions for other hosts, but I found the
URL Redirect interface under “Site tools” in the Site5 admin console.

Regards,
Martin O.
http://smpl.se

Farrel L. said the following on 01/28/2007 03:13 PM:

Then if I have a page I want to redirect elsewhere I just give it the
‘Redirect’ layout and put the url I want to redirect to in the body.

AYAH!
Wonderful!

Two key perspectives from Jim Collin’s book “Good to Great”.
1) “Being great is a decision” and
2) “Being good is an enemy of being great”