http://www.domain.com/?lang=eng => http://www.domain.com

Discuss practical ways rearrange URLs using mod_rewrite.

http://www.domain.com/?lang=eng => http://www.domain.com

Postby cigjonser » Tue Feb 21, 2006 7:57 pm

Trying to go from:
http://www.domain.com/?lang=eng
to:
http://www.domain.com

Basically, just chopping off the "?lang=eng" part.

I have tried different variations. The ones that seem to even try enter infinite loops I think:

RewriteCond %{QUERY_STRING} eng$ [NC]
RewriteRule lang=eng / [L]

Any help is greatly appreciated.

Cigjonser
cigjonser
 
Posts: 1
Joined: Tue Feb 21, 2006 7:52 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 14 guests

cron