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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.