This question has been answered by Bruno17. See the first response.
<?php
if (strpos($_SERVER['REQUEST_URI'], 'index.php') !== false) {
/* Not a friendly URL */
}69.14.XX.XX - - [05/May/2014:19:49:03 +0000] "GET /index.php?id=659 HTTP/1.1" 301 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0" 69.14.XX.XX - - [05/May/2014:19:49:03 +0000] "GET /modified/path/to/page/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0"
This might do it:
--><!--?php if (strpos($_SERVER['REQUEST_URI'], 'index.php') !== false) { /* Not a friendly URL */ }
<?php
if (isset($_GET['id'])){
$modx->sendForward($_GET['id']);
}not sure, if that is what you want.
You can try this in a plugin with the system-event onHandleRequest
<!--?php if (isset($_GET['id'])){ $modx--->sendForward($_GET['id']); }
this doesn't do a sendRedirect, if there is ?id=XXX in the URL