Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
webpresence
Joined: Sep 22, 2004
# Posts: 18
|
Posted: 2004-Sep-23 13:51
Hi,
I'm a newbie to mod rewrite and altough I've been searching the web all day for simple instructins how to implement a URL manipulation all the resources I have found are just too technical for me to comprehend. Can you guys help?
I want to change pages similar to;
www.mydomain.com/cgi-bin/file.cgi?Wish=FFFF0050008000006221197B
to a search enfine friendly url.
Does anyone know of a good resource that can teach me how to do this using mod rewrite?
Many thanks guys, appreciate it.
|
 |
Mike-Levin.com
Joined: Sep 27, 2000
# Posts: 1988
|
Posted: 2004-Oct-12 02:21
Lee,
Have you had any luck on this yet? Is your Webserver IIS or Apache?
People don't talk about it much, but all the Mod_Rewrite tricks are based on a type of Search & Replace called "Regular Expression Matching", or RegExp. Once your software to do a mod_rewrite is installed (comes with Apache http://httpd.apache.org/docs/mod/mod_rewrite.html and can be found free for IIS), it's really a matter of setting up one of these search & replace commands. For example, you would match on...
www.mydomain.com/cgi-bin/file.cgi?Wish=FFFF0050008000006221197B
With this pattern...
RewriteRule (.*)/cgi-bin/file.cgi?Wish=(.*) /wish/.html
This takes the whole cgi-bin part of the URL, and makes it look like it's in a directory named wish, with a file with the same name as the parameter.
www.mydomain.com/wish/FFFF0050008000006221197B.html
Exactly WHERE you put this rule, and maybe some of the syntax varies based on the mod_rewrite tool.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|