PostNuke

Flexible Content Management System

News




Another crazy idea for PostNuke.

It would be nice to be able to click on a "Smilies Gif" or "Anchor Tag" just like bbs fourm does on PostNuke when we are submitting news, or articles. Maybe in the future, I would like to see this feature add on PostNuke.





Add your comment(s), if you agree with me and think this is a cool one, or if not, also let me know.





Also, could I suggest an "Idea" Topic to this site.


ServerAliases and single postnuke, redirect the right url name

Today i scratched my head on this, trying several Apache config tweeks with no good results. What i wanted was the url beying redirected and replaced in the browser in order to unify host names.





Say someone ask for postnuke.net or www.postnuke.org and he is stright redirected to http://www.postnuke.com/ or what is stored in the postnuke preferences and this is what will be bookmarked and allowed to robots.





I added this to postnuke and this is a matter of 5 lines added to header.php





Right after :


include("config.php");





Insert this:


global $HTTP_HOST, $nukeurl;


if("http://$HTTP_HOST/" != $nukeurl) {


header("Status: 301 Moved Permanently");


header("Location: $nukeurl");


}






This just compare the host name in the HTTP request with the postnuke settings. If they don't match, the client is permanently redirected to the right url. The status 301 state robots and proxys, the alias name that drove them here is not for any storage.





Please tell if this behaviour is suitable for everybody, if this should be left as an options or beying a standard postnuke feature. Do you want this included in a next postnuke release ?





Léa Gris





First Page Previous Page Page 230 / 277 (2291 - 2300 of 2763 Total) Next Page Last Page