Solved

ISAPI REWRITE code needed for beginner

Posted on 2008-10-21
4
282 Views
Last Modified: 2013-12-24
Hi There

I have the following url

http://www.domain.com/products/index.php?category_id=$cat
and
http://www.domain.com/products/index.php?product_id=$prod

but for seo purposes would like these pages to be accessed by using the following url

http://www.domain.com/products/category_name
and
http://www.domain.com/products/category_name/product_name

I would like to have spaces replaced with hashes and for the product page would like to have the product name as well as the category name showing (is there a way to do a db query in order to get the category name)

Thanks in Advance

0
Comment
Question by:Delacourt
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
James Rodgers earned 500 total points
ID: 22867278
not with isapi rewrite, it can redirect or replace the url but not run queries, you would need to build a cf page to manage your categories and create the isapi ini when categories are added/updated/deleted ans specify the rules to apply
0
 
LVL 1

Author Comment

by:Delacourt
ID: 22885330
wow, could you tell me where I can find a tutorial on this ? I am using PHP on a windows box, not coldfusion ?

thanks
0
 
LVL 25

Expert Comment

by:James Rodgers
ID: 22885469
i think it's a bit more complicated than what a tutorial would be able to cover, what i suggested above is not easy
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question