Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess mod_rewrite rule help

Status
Not open for further replies.

jasc2k

Programmer
Joined
Nov 2, 2005
Messages
113
Location
GB
hi all,

not sure if this is technically the correct forum but here goes.
I have tried many different code combinations but this seems to be a little too much for me, in short I would like to rewrite the URL from:

to:

HOWEVER my problem being I would like to preserve the query string after .html i.e
...content/invite.html?to=james&from=tom
added onto the server side
...index.php?id=invite&to=james&from=tom

(example URL's)
I hope someone understands this lol - my reason for looking at this is for SEO search rankings

any help appreciated
thanks

- free mp3 downloads and streaming
 
my current progress tests:
Code:
#rewriteRule ^content/(.*) index.php?id=$1
#RewriteRule ^content/(.*).html(.*)?$ index.php?id=$1&$2

- free mp3 downloads and streaming
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top