Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative permalink structure
#1
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?
Reply
#2
RewriteRule ^([A-Za-z0-9_-]+)/ index.php?id=$1 [QSA,L]
Reply
#3
Thanks Exalax!
Reply
#4
how so ?
Wouldn't that be bad for SEO ?

slug/a
slug/b goes to the same content ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
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.
Reply
#6
Never noticed that.
Yeah didn't we discuss this rule change already in depth ?

Fancy urls for querystrings
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
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...ail?id=307 (original issue)
Reply




Users browsing this thread: 1 Guest(s)