2016-09-07, 03:29:33
(This post was last modified: 2016-09-07, 05:18:26 by mica.
Edit Reason: mistake about the plugin name
)
(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
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 ?