| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | Question with mod rewrite The url to games on my website looks something like this: http://www.gameworldx.com/gameinfo.php?gameid=X X could be any number from 1 to around 650. I want to change the URL to something like this: http://www.gameworldx.com/game_X.htm Now, I know how to do that, however there are numerous people linking to my games the dynamic way, is there any way that I can redirect the page so users that type in http://www.gameworldx.com/gameinfo.php?gameid=X are redirected to http://www.gameworldx.com/game_X.htm ?? Thanks in advance, Joe |
| |
| | #6 (permalink) |
| NamePros Regular | ah right... im not too sure exactly but i think i once pulled off something similar with something like <Iframe Src="game.php"></Iframe> i can't remember exactly how i did it........... or you could empty the php page and use an include? im sorry i'm not much help Last edited by Wildchild22; 06-28-2005 at 06:43 PM. |
| |
| | #7 (permalink) |
| Pro Coder & Designer | well what you could do is this: copy the file gameinfo.php and rename it to ginfo.php make a mod_rewite line for that to make it game_1.html as example. with gameinfo.php you will delete the content and only write some php code to redirect it. example: guy1 goes to www.domain/gameinfo.php?id=1 in the source it will look like this: Code: <META http-equiv=Refresh CONTENT="5; URL=game_<? echo $id; ?>.html"> Hope this clears it up you. X
__________________ Online Dragonball Game |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Not at trick question | Coastalguy | The Break Room | 5 | 05-04-2005 04:22 PM |
| phpbb mod instlation help needed ill pay 20$ a mod | jamieneil | Website Development | 6 | 05-02-2005 07:17 AM |
| mod rewrite | dotcommakers | Website Development | 2 | 01-22-2005 10:05 PM |
| little question.. | khkhan | Domain Appraisals | 2 | 11-20-2004 04:28 AM |
| How to MOD PhpBB on PhpNuke? | drmaximus | Website Development | 8 | 10-12-2004 02:10 PM |