Forum Moderators: phranque
have spent the whole of today learning about the wonders of mod_rewriting.
have almost solved what i needed to do, but there is still one slight bug.
i need to take a url such as:
www.domain.com/lookup?url=www.submittedurl.com
and in the browser address bar, have it chage to:
www.domain.com/www.submittedurl.com/display.html
so far i have this:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^url\=(.*)$
RewriteRule ^/lookup$ /%1/display.html [R]
and what it gives me is:
www.domain.com/www.submittedurl.com/display.html?url=www.submittedurl.com
any idea of how to get rid of the final '?url=www.submittedurl.com'
many thanks
Ref: [etext.lib.virginia.edu...]
Jim