| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Feb 2004 Location: Student @ UConn
Posts: 411
![]() ![]() | 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 ?? ????: NamePros.com http://www.namepros.com/programming/102585-question-with-mod-rewrite.html Thanks in advance, Joe
__________________ Joe |
| |
| | #6 (permalink) |
| NamePros Regular Join Date: Jun 2005 Location: S. Yorkshire, United Kingdom
Posts: 310
![]() | 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 07:43 PM.
|
| |
| | #7 (permalink) |
| Pro Coder & Designer Join Date: Apr 2005 Location: Netherlands
Posts: 967
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. ????: NamePros.com http://www.namepros.com/showthread.php?t=102585 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
__________________ aween web development |
| |
![]() |
| 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 05:22 PM |
| phpbb mod instlation help needed ill pay 20$ a mod | jamieneil | Website Development | 6 | 05-02-2005 08:17 AM |
| mod rewrite | dotcommakers | Website Development | 2 | 01-22-2005 11:05 PM |
| little question.. | khkhan | Domain Appraisals | 2 | 11-20-2004 05:28 AM |
| How to MOD PhpBB on PhpNuke? | drmaximus | Website Development | 8 | 10-12-2004 03:10 PM |