| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| RyanPrice.ca - Developer Join Date: Dec 2003
Posts: 1,328
![]() ![]() ![]() | mod_rewrite Okay I've spent some time trying to look into this and I just can't figure it out, so I'm going to tell you what I'm trying to do and hope that someone can help me out. ????: NamePros.com http://www.namepros.com/programming/22174-mod_rewrite.html I'm trying to use the mod_rewrite command so that the following things happen: - when http://www.epasture.com/content.php?...ables.php&ID=8 gets requested the browser will show something like www.epasture.com/laughables8.html - similarily, when www.epasture.com/laughables8.html is requested the browser bar stays the same but the URL in the first example is delivered to the user The twist: I have different sections so I need this to work for all of the pages. What I need is if someone typed in: 1) epasture.com/laughables.html it takes them to epasture.com/content.php?content=laughables.php 2) epasture.com/laughables8.html it takes them to epasture.com/content.php?content=laughables.php&ID=8 3) epasture.com/tutorials.html it takes them to epasture.com/content.php?content=tutorials.php 4) epasture.com/tutorials2.html it takes them to epasture.com/content.php?content=tutorials.php&ID=2 I hope this explained in enough detail what I'm after. Can anyone help?
__________________ Ryan Price - Webmaster www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign |
| |
| | THREAD STARTER #3 (permalink) |
| RyanPrice.ca - Developer Join Date: Dec 2003
Posts: 1,328
![]() ![]() ![]() | no its not a redirect, its something called mod_rewrite (apache).
__________________ Ryan Price - Webmaster www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign |
| |
| | THREAD STARTER #4 (permalink) |
| RyanPrice.ca - Developer Join Date: Dec 2003
Posts: 1,328
![]() ![]() ![]() | Problem solved.
__________________ Ryan Price - Webmaster www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign |
| |
| | THREAD STARTER #6 (permalink) |
| RyanPrice.ca - Developer Join Date: Dec 2003
Posts: 1,328
![]() ![]() ![]() | You can read the development and solution of my problem here: http://www.webhostingtalk.com/showth...hreadid=242410
__________________ Ryan Price - Webmaster www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign |
| |