Docs: Redirects
Show AllHide All
-
Main Page
- About
-
About
- Development
-
Code Library
Databases
- Extensions
-
Examples
Snippets
Redirects
Custom head
Introduction
- Templates
-
Skins
Smart Tags
Body Tag Classes
Master Template
- Variables
-
Language
Session Variables
Page Variables
add page
Last update: Databases
by Sean on Tuesday 12th of July
at 04:05pm
Redirecting a page or URL
Standard PHP headers can be added to the top.inc file, so a 301 redirect would look like this:
if($_SERVER['REQUEST_URI']=='/badlink') {
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: /" );
exit;
}
Note: the redirects.inc file will be deprecated in the next version of Vendo.
Revisions history (6) ( hide | show ) Extensions > Redirects
×