cnb / News_Manager-getsimplecms

A blog/news plugin for GetSimple CMS - development extended version
8 stars 10 forks source link

better default permalink/URL structure #34

Closed cnb closed 11 years ago

cnb commented 11 years ago

http://get-simple.info/forums/showthread.php?tid=3972&pid=31535#pid31535

Right now if you don't select fancy URLs in NM, by default a post has an URL like:

SITE/index.php?id=news&post=title

I'm going to change this default permalink structure: NM will use the one defined in GS, so that you can have slightly better URLs without having to change the .htaccess file, like:

SITE/news/?post=title SITE/news?post=title

(I'm using posts as an example, but this is also applicable to ?archive=, ?tag= ...)

Now my question to current NM users: Is anyone interested in having a setting to force using old-style default permalinks, independent of the structure defined in GS? (maybe for existing sites that want to keep it because of SEO)

cnb commented 11 years ago

No one objected, so I just make this change, with no settings.

cnb commented 11 years ago

The new default structure works ok, but not NM fancy url's: there's a double slash, like: SITE/news//post/title

cnb commented 11 years ago

https://github.com/cnb/News_Manager-getsimplecms/commit/c74f42d223cb3d9916b64053cc0e63a85d40574f