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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite for SE friendly URLs

Status
Not open for further replies.

MasterKaos

Programmer
Jan 17, 2004
107
GB
I’m a total newb when it comes to regex, so I was wondering if someone could help me come up with the correct mod rewrite rule for the following scenario:

When this url is requested

domain.com/sub/directory/file.php

This url is called

domain.com/?p=sub.directory.file (or domain.com/index.php?p=sub.directory.file)

if someone could help me with the rule and explain the different bits of it I’d be forever grateful =)

Thanks!

----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top