Hi,
This is my first time using mod_rewrite.
I want everything after my root / (slash) to redirect to another page AS LONG as it doesnt contain a '.' (dot) OR another '/' (slash)
Basically, I want 'mysite.com/travis' to redirect to this page, but I do not want
'mysite.com/travis.anything' NOR 'mysite.com/travis/anything' to redirect.
I currently have
RewriteEngine on
RewriteBase /
RewriteRule ^[^.//]*$ /path/toMyRedirect.jsp?oldUrl=%REQUEST_URI} [R]
Except this is now redirecting my INDEX page to it.
When I type in 'mysite.com' it is redirecting... I dont know why .
Could someone please tell me what I need to to, the proper way?
Also, the pages that ARE redirecting properly are sending the parameter '/travis' . Is there a way that i can get it to JUST pass 'travis'
without the leading '/' ???
THANKS ALOT!!!!!!!