Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite directory to load PHP file

Another search engine friendly URL question!

         

kabbink

6:30 am on Dec 25, 2008 (gmt 0)

10+ Year Member



Hey all,

I just switched hosts and used to use ForceType to accomplish what I need but apparently I can't use it with cPanel. Also SetHandler doesn't do the trick so I need to move to using rewrites.

Hopefully this will be an easy one!

All I need to do is rewrite (hidden of course) something like the following:

domain.com/products/Blue-Widgets.html
to
domain.com/products.php?Blue-Widgets.html

Thanks!

g1smd

11:31 am on Dec 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's the simplest of rewrites, example code for which appears in almost every thread in this forum.

Post your best effort code here as a basis for discussion.