does anyone have advice on how to approach this:
I have javascript text editors in my cms :
I need to allow client to add/edit his text, which has lots of internal site links while site is on development server
site will move to live server one day
mod_rewrite is converting static urls to dynamic
problem is when adding the internal links with the editor tool and what happens with mod-rewrite and browser
I can enter a nice simple:"/heresthepage.php?x=342"
(with or without leading slash)
but the browser gets confused and links are garbagised on output side
I could get client to add links preceded with a bit of php:
<?php echo $siteroot ?> /exciting-page/342
or I could ask him to prefix links with some random stuff:
!ZYX!/exciting-page/343
and do str_replaces to add a dynamic php variable on insert to db...
and then of course reverse them to put it back into editor
its a pita right now...
any advice on strategy would be much appreciated