Jump to content

[SOLVED] mod_rewrite help needed. changing /?gamertag=test&bg=0 to /test/0.jpg


TexasMd91

Recommended Posts

Alright, I am working on some Halo 3 Dynamic stat sigs.

 

I have everything done, however it uses $_GET to retrieve the information (example on line below)

/generator/statsig/index.php?gt=texasmd91&bg=0&color=ffffff

 

Which if you don't know, most forums don't recognize it as a image so it outputs an error.

 

So how would I make it so if a user tries to go to the page

/generator/statsig/index.php/texasmd91/0/ffffff.jpg

it would actually go to the page

/generator/statsig/index.php?gt=texasmd91&bg=0&color=ffffff

 

 

 

I have read several guides on .htaccess, mod_rewrite, etc. and it is so much more confusing then it seems to be.

Link to comment
Share on other sites

I finally google'd across a helpful tutorial

http://www.shadow-fox.net/site/tutorial/45-Create-Dynamic-URLs-With-Mod-Rewrite-and-PHP-Functions

 

Problem solved.

 

Hope this help you guys with the same problem.

 

 

PS: I think there should be a topic in the forums with basically serves as an index to tutorials for things like this.

 

 

I searched these forums for the problem I was having, and came across 7+ topics of people having same question as me, and no 1 replying.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.