M.Zharkikh's personal site logo
Mail to site
Print version
News (RSS)
Smereka / For administrators / Redirecting

Smereka

For administrators

Redirecting

Smereka has its own mechanism for per-page external redirect. Basically it is designed to support the old URLs while existing site migrating to the Smereka management.

To setup redirection, do two things:

1, fill table redirect, containing the old URL, new URL and response code (default 301 permanent redirect);

2, provide the addition of the old URL with Cmd=Redirect parameter, for example, using mod_rewrite:

RewriteRule ^olddir/(.*)$ index.php?Cmd=Redirect [L,QSA]

As the result of this rewrite all requests for documents from the directory olddir directed to Smereka, which performs this external redirection (the client receive the new URL, and it may ask if you want to document it).

Previous section | Table of content | Next section

Please this page? Help us to develop this site!

1978 2018 N.I.Zharkikh

Reprinting of articles from site are encouraged while
reference (hyperlink) to my site is provided

Site powered by

Load count : 1238

Modified : 8.08.2017

If you look up the type error
on this page, please select it
by mouse and press Ctrl+Enter.