Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED Plugin dev. routing
#7
(2016-09-07, 01:09:59)shawn_a Wrote: I do not think there is. I think there is code floating around the forum though.

eg
http://get-simple.info/forums/showthread.php?tid=8254

Ok thanks a lot, it seems that it's exactly I needed but after many attempts I still have 404  Sad
Original pages work http://localhost/siegen/about
but http://localhost/siegen/projet/abc = 404 X


here are some info about my config

fancy url are on && (cache flushed many times)
no custom permalink specified

in the Extra Router GS FRONT ROUTER plugin setting page
Route : SITEURL/projet/([a-z0-9-]+)
Action :

PHP Code:
<?php
  die
('test');
 
 return array(
 
 'title'   => 'test (' $args[0] . ')',
 
 'content' => function($slug) {
 
   echo $slug;
 
 }
); 

And finally (I think the problem is here) my .htaccess rewrite content

Code:
RewriteEngine on
RewriteBase /siegen/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#Extra Router recommended (doesn't work)
#RewriteRule ^(.*)$ index.php?/$1 [QSA,L]

#original (doesn't work)
#RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
#my attempt (doesn't work ;(((((
RewriteRule /?([^/]*)/?(.*)/?$ index.php?id=$1&pid=$2 [QSA,L]


Could you help me, please ?
Reply


Messages In This Thread
Plugin dev. routing - by mica - 2016-09-06, 22:24:52
RE: Plugin dev. routing - by shawn_a - 2016-09-06, 23:48:31
RE: Plugin dev. routing - by mica - 2016-09-06, 23:59:46
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 00:38:00
RE: Plugin dev. routing - by mica - 2016-09-07, 00:42:01
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 01:09:59
RE: Plugin dev. routing - by mica - 2016-09-07, 03:29:33
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 03:58:57
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 04:11:57
RE: Plugin dev. routing - by Bigin - 2016-09-07, 04:22:53
RE: Plugin dev. routing - by mica - 2016-09-07, 05:06:49
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 04:49:15
RE: Plugin dev. routing - by mica - 2016-09-07, 05:13:47
RE: Plugin dev. routing - by Bigin - 2016-09-07, 05:20:28
RE: Plugin dev. routing - by mica - 2016-09-07, 05:24:33
RE: Plugin dev. routing - by Bigin - 2016-09-07, 05:28:37
RE: Plugin dev. routing - by mica - 2016-09-07, 05:31:42
RE: Plugin dev. routing - by Bigin - 2016-09-07, 05:47:00
RE: Plugin dev. routing - by Bigin - 2016-09-07, 06:03:02
RE: Plugin dev. routing - by mica - 2016-09-07, 06:22:26
RE: Plugin dev. routing - by shawn_a - 2016-09-07, 07:04:57



Users browsing this thread: 1 Guest(s)