Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-09 20:21:14

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

aks_301 : Simple 301 redirect with conditions

aks_301 – Simple 301 redirect with conditions

Version 0.1 homepage

Summary

This plugin useful for redirect non exist pages or directories to other place.
Default: to domain root.

Tags

<txp:aks_301 /> — place this tag !!!ONLY!!! to start your page.

Sample my error_default page:

<txp:aks_301 start="/categories/|/article/" /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
[skip...]

Attributes

Attribute Default Description
start '' one or more conditions. Delimiter: |
url 'http://yourdomain.com/' url for 301 redirect. Default – your domail root

.

Examples

error_default page:

<txp:aks_301 start="/categories/" url="http://mydomain.com/somepage.html" />
all non exist pages in /categories/* - 301 redirect to http://mydomain.com/somepage.html
<txp:aks_301 start="/categories/|/section1/" />
all non exist pages in /categories/* and /section1/* - 301 redirect to domain root
<txp:aks_301 start="/" />
ALL non exist pages  - 301 redirect to domain root

default page:

<txp:aks_301 start="/categories/" url="http://mydomain.com/somepage.html" />
all EXIST pages in /categories/* - 301 redirect to http://mydomain.com/somepage.html
<txp:aks_301 start="/" url="http://otherdomain.com/" />
ALL EXIST pages  - 301 redirect to http://otherdomain.com/

Last edited by makss (2016-01-16 17:06:15)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#2 2009-08-16 08:17:06

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_301 : Simple 301 redirect with conditions

Now plugin aks_301 included in aks_header (2 in 1)

Please use aks_header.

Forum thread

Last edited by makss (2016-01-16 17:05:36)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

Board footer

Powered by FluxBB