changing URL

Discuss practical ways rearrange URLs using mod_rewrite.

changing URL

Postby Guest » Wed Sep 11, 2002 3:07 pm

I'm looking to change a URL from something like this:

http://www.mysite.com/foo/index.html?bar/page.html

to this:

http://www.mysite.com/foo/bar/index.html?id=page.html

I've tried different variations but just can't seem to get it. I thought maybe something like the following...

RewriteBase /foo/
RewriteRule ^index.html?bar/(.*) bar/?id=$1 [R]

but that doesn't do it.

Any help greatly appreciated.
Guest
 

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 5 guests

cron