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

Status
Not open for further replies.

JamesGMills

Programmer
Aug 15, 2005
157
GB
Hi Guys, need some help please! Been trying all day with no success!

# RewriteRule ^([^/]*)$ [L]
RewriteRule ^([^/]*)/$ index.php?section=$1 [L]

# #RewriteRule ^([^/]*)\/([^/]*)\/?$ index.php?section=$1&page=$2 [L]


I hope you can see what I am trying to do. If you need me to explain more please post.

I am guessing that this is the best way of doing what I want to do. Then I can use server side programming (using php) to get at the url-friendly name the section or article has to load that from the database...

Thanks in advance...

------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top