Current location: Hot Scripts Forums » Programming Languages » PHP » PHP mod_rewrite question


PHP mod_rewrite question

Reply
  #1 (permalink)  
Old 07-11-05, 07:20 AM
alej469's Avatar
alej469 alej469 is offline
Newbie Coder
 
Join Date: Apr 2005
Location: West Midlands, UK
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
PHP mod_rewrite question

Ok, you might find this simple, but i don't!

I've been playing around with mod_rewrite to make get *.php pages to look like */, for example:

item/12345.php into item/12345/

I've looked everywhere and got through several cups of coffee trying to figure it out, but i'm still stuck. Can anyone help? So far i've got:

Code:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^item/(.*)/ /item/$1.php
__________________
Funny videos
Reply With Quote
  #2 (permalink)  
Old 07-11-05, 11:59 AM
Tim Mousel Tim Mousel is offline
Wannabe Coder
 
Join Date: Jan 2005
Posts: 157
Thanks: 0
Thanked 0 Times in 0 Posts
This is a very good tutorial:

http://www.phpfreaks.com/tutorials/23/0.php
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert from html to php question ZviT PHP 1 07-07-05 07:32 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
general question about php and html timfoster PHP 3 05-17-04 12:29 PM
question about updating a page or database for an, php and mysql updating mikewooten PHP 1 02-12-04 12:11 AM
Question about dreamweaver and php? chinablack1480 PHP 0 12-07-03 10:16 PM


All times are GMT -5. The time now is 06:54 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.