954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

php rewrite question

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

profitblaze
Newbie Poster
1 post since Mar 2005
Reputation Points: 10
Solved Threads: 0
 

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.

cscgal
The Queen of DaniWeb
Administrator
19,432 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

What you are saying is ForceType. For more information http://www.seochat.com/c/a/Search-Engine-Optimization-Help/PHP-Search-Engine-Optimization/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_rewrite-rewriterule-generator.shtml

PoA
Posting Whiz in Training
237 posts since Jul 2004
Reputation Points: 26
Solved Threads: 9
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You