You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We're moving a wordpress site to pencilblue and need 301 redirects. In request handler I'm a bit confused where to put in this logic. Need a suggestion.
The text was updated successfully, but these errors were encountered:
or you can build your own redirect via something like the code shown below. This code would exist in a controller for a specific route.
SomeController.prototype.someRouteHandler = function(cb) {
//do redirect the manual way to Google
var result = {
headers: {
location: 'http://google.com'
},
code: 301
};
cb(result);
};
Hi,
We're moving a wordpress site to pencilblue and need 301 redirects. In request handler I'm a bit confused where to put in this logic. Need a suggestion.
The text was updated successfully, but these errors were encountered: