Alternative permalink structure - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Alternative permalink structure (/showthread.php?tid=4443) |
Alternative permalink structure - Carlos - 2013-03-11 Current standard .htaccess rewriterule for GS is RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L] which works for URL permalink structures like: whatever/%slug% whatever/%slug%/ I think it could be useful being able to have structures like: %slug%/whatever %slug%/whatever/ Does anyone know what rewriterule(s) would work for this? RE: Alternative permalink structure - Exalax - 2013-03-11 RewriteRule ^([A-Za-z0-9_-]+)/ index.php?id=$1 [QSA,L] RE: Alternative permalink structure - Carlos - 2013-03-12 Thanks Exalax! RE: Alternative permalink structure - shawn_a - 2013-03-12 how so ? Wouldn't that be bad for SEO ? slug/a slug/b goes to the same content ? RE: Alternative permalink structure - Carlos - 2013-03-12 That also happens with GS default rewriterule, a/slug b/slug c/d/e/f/slug all go to the same content. (unless you enable GSCANONICAL) The idea is that a plugin can use the rest of the uri as parameters. RE: Alternative permalink structure - shawn_a - 2013-03-12 Never noticed that. Yeah didn't we discuss this rule change already in depth ? Fancy urls for querystrings RE: Alternative permalink structure - Carlos - 2013-03-12 Ah yes, that was Zegnat's interesting (different, better) approach: http://get-simple.info/forums/showthread.php?tid=2984 https://github.com/GetSimpleCMS/GetSimpleCMS/issues/307 https://code.google.com/p/get-simple-cms/issues/detail?id=307 (original issue) |