Forum Moderators: phranque

Message Too Old, No Replies

invisible redirecting using mod_rewrite with exceptions (the good one)

redirect pages unless the contan .?&=

         

jelleast

8:55 pm on Jan 10, 2006 (gmt 0)

10+ Year Member



i want to translate this little piece of code in apache style so i can use it in a .htaccess file,

but i have realy no idea how to do it...

If(no ‘.’ or ‘?’ or ‘&’ or ‘=’ in url after last ‘/’){
"http://127.0.0.1/tryout/moeder" becomes "http://127.0.0.1/tryout/?page=display&book=moeder"
}

in this script "moeder" could be changed in anything else, and will be rewritten after "?page=display&book=", unless it contains a ‘.’ or ‘?’ etc.

so if i use:
[127.0.0.1...]
the script will not try to redirect that to
[127.0.0.1...]

i hope someone can help me out
most sincerly

jelle van oosten

jdMorgan

3:43 pm on Jan 11, 2006 (gmt 0)