php rewrite question

Reply

Join Date: Mar 2005
Posts: 1
Reputation: profitblaze is an unknown quantity at this point 
Solved Threads: 0
profitblaze profitblaze is offline Offline
Newbie Poster

php rewrite question

 
0
  #1
Mar 16th, 2005
First of all thanks for all the helpful advice.
It's great to have a site like this to turn to for help.

My question is this (I think this idea would be valuable for many):

I would like to have members of my affiliate program be able to promote a more SE friendly URL like:
http://profitblaze.net/4/admin

instead of http://profitblaze.net/x.cgi?id=admin

Is there a way to setup a rewrite in the "4" directory to automatically insert the "x.cgi?id=" before the affiliate code?

I have been searching all over the net all day and finally found your site. Can you help?

Sincerely,
Mark Kessler

http://profitblaze.net
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,038
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: php rewrite question

 
0
  #2
Mar 17th, 2005
Check out our Apache forum (it's a subforum within Web Hosting) for something called mod_rewrite. You should find your answer there What you're looking for can be done with an edit to your .htaccess file.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 234
Reputation: PoA is an unknown quantity at this point 
Solved Threads: 8
PoA PoA is offline Offline
Posting Whiz in Training

Re: php rewrite question

 
0
  #3
Mar 19th, 2005
What you are saying is ForceType. For more information http://www.seochat.com/c/a/Search-En...ptimization/3/

Like cscgal said, mod_rewrite does work well. You may want to take a look (easier for beginner)
http://www.webmaster-toolkit.com/mod...enerator.shtml
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC