Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite - removing entire path?

         

orubel

6:09 pm on Apr 5, 2007 (gmt 0)

10+ Year Member



I'm trying to remove the entire path from the URL so that the following:

[mysite.com...]

...ends up looking like the following...

[mysite.com...]

I thought I had this solved with the following mod_rewrite but it doesn't seem to work at all. I've even tried it without the RewriteCond and still nothing.

RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)[?]{1}$
RewriteRule ^.*[?]{1}(.*)$ ^[?]{1}$1 [L]

Any ideas as to what I'm doing wrong?