Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[MOD_REWRITE] How to rewrite this simple URL?

Status
Not open for further replies.

rubenski

IS-IT--Management
Aug 3, 2001
5
NL
Hi all,

I am succesfully rewriting this url:

widgetsite.nl/Blue_Widgets/ to
widgetsite.nl/getcontent.php?art=Blue_Widgets

using this rule:

RewriteRule ^(.*)/$ getcontent.php?cat=$1 [L]

But how would I do this when the forward slash at the end is ommited? In other words how do I rewrite

widgetsite.nl/Blue_Widgets (not the / is missing at the end) to widgetsite.nl/getcontent.php?art=Blue_Widgets ??

It is the last thing I should fix before publishing my new web site. Your help is very much appreciated.



 
I'd be very pleased if someone coud answer this. Am I in the right subforum for this question?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top