URL modification/rewriting -


i wonder how possible make compatible both os depending if host website on windows or linux

for example of link should rewritten: old: yourdomain.org/index.php?menu=register&action=create new: yourdomain.org/index/register/create

i'm sorry if not correct board or something, hope made myself clear.

this should work rewrite url

http://yourdomain.org/index.php?menu=register&action=create

to

http://yourdomain.org/index/register/create

rewriteengine on rewriterule ^index/([^/]*)/([^/]*)$ /index.php?menu=$1&action=$2 [l]


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -