Solved

ISAPI REWRITE code needed for beginner

Posted on 2008-10-21
4
281 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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