NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page mod_rewrite

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 02-29-2004, 01:54 PM THREAD STARTER               #1 (permalink)
RyanPrice.ca - Developer
Join Date: Dec 2003
Posts: 1,328
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
 



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
Jeanco is offline  
Old 02-29-2004, 02:54 PM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
u want to redirect someone to another page if they type in the file name?
adam_uk is offline  
Old 02-29-2004, 04:22 PM THREAD STARTER               #3 (permalink)
RyanPrice.ca - Developer
Join Date: Dec 2003
Posts: 1,328
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
 



no its not a redirect, its something called mod_rewrite (apache).
__________________
Ryan Price - Webmaster
www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign
Jeanco is offline  
Old 02-29-2004, 05:46 PM THREAD STARTER               #4 (permalink)
RyanPrice.ca - Developer
Join Date: Dec 2003
Posts: 1,328
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
 



Problem solved.
__________________
Ryan Price - Webmaster
www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign
Jeanco is offline  
Old 03-03-2004, 01:18 AM   #5 (permalink)
NamePros Expert
 
Anthony's Avatar
Join Date: Dec 2003
Location: NYC
Posts: 9,132
Anthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant future
 

Member of the Month
October 2004

Quote:
Originally posted by Jeanco
Problem solved.
What was the solution?
Anthony is offline  
Old 03-03-2004, 04:00 AM THREAD STARTER               #6 (permalink)
RyanPrice.ca - Developer
Join Date: Dec 2003
Posts: 1,328
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
 



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
Jeanco is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:15 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger